how call a c function with stdcall?
mzfhhhh via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Mar 24 17:09:31 PDT 2015
On Tuesday, 24 March 2015 at 15:26:22 UTC, Adam D. Ruppe wrote:
> try extern(Windows) isntead of extern(C).
use extern(Windows) or extern(System)
the compile show the link error:
Error 42: Symbol Undefined _sub at 8
----------------
dll export func name is "sub",
and the dll is 3rd party,i can't change the dll code.
i use "implib.exe /system func.lib func.dll" to create a func.lib.
how can i link correctly?
More information about the Digitalmars-d-learn
mailing list