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@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?