www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

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

↑ ↓ ← 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
↑ ↓ → "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