Question about DLLs & implib

Mike Parker aldacron71 at yahoo.com
Tue Jan 30 00:21:14 PST 2007


John Kiro wrote:
> Hi There
> 
> I have a DLL containing functions having stdcall calling convention.
> In order to be able to call these functions from inside a D-language
> program, I tried to create an import lib for the DLL using implib.exe.
> But the problem is that implib.exe neglects the calling convention of
> the functions, i.e. doesn't take into account the name decoration, so
> the linker does not find them.
> 
> The only solution I see is to use the "C" calling convention instead,
> and use the option /s (or /system) with implib.exe:
> 
>    implib.exe /system mydll.lib mydll.dll
> 
> So is there a way to use the stdcall convention instead?
> 

extern(Windows)


More information about the Digitalmars-d-learn mailing list