www.digitalmars.com         C & C++   DMDScript  

c++ - implib with stdcall DLLs & linking with MSVCRT.DLL

reply Lehel Bernadt <blehel kabelkon.ro> writes:
I created an import library for COMDLG32.DLL, but implib didn't write a 
stdcall definition of the funcs (ie. there's only _GetOpenFileNameA and 
not _GetOpenFileNameA 4). So linking fails because the stdcall version 
is missing.

I tried to link C programs with MSVCRT.DLL but it seems not to be 
compatible with DM's runtime lib - the program aborts with an invalid 
page fault.
IMHO there should be the possibility to link to a dynamic runtime. A 
simple "Hello world" program is 35K compiled statically while 
dynamically it's just 3K.
Jun 14 2001
parent "Walter" <walter digitalmars.com> writes:
I emailed you the .lib file.

Microsoft's runtime library will not work with DM, but the system dll's
will.

Lehel Bernadt wrote in message <3B29212A.2040009 kabelkon.ro>...
I created an import library for COMDLG32.DLL, but implib didn't write a
stdcall definition of the funcs (ie. there's only _GetOpenFileNameA and
not _GetOpenFileNameA 4). So linking fails because the stdcall version
is missing.

I tried to link C programs with MSVCRT.DLL but it seems not to be
compatible with DM's runtime lib - the program aborts with an invalid
page fault.
IMHO there should be the possibility to link to a dynamic runtime. A
simple "Hello world" program is 35K compiled statically while
dynamically it's just 3K.

Jun 14 2001