D, windows developement, frustration and fish

Vladimir Panteleev via Digitalmars-d digitalmars-d at puremagic.com
Sun Feb 1 02:03:30 PST 2015


On Sunday, 1 February 2015 at 09:42:49 UTC, ketmar wrote:
> so i ran "implib.exe /s wininet.lib 
> c:\windows\system32\wininet.dll",

This will not work and is not D's fault. The DLL does not contain 
information required to create a working import library (the size 
of parameters on the stack is included in the mangled name).

Another thing you could've done is convert the MSVC .lib to COFF:

C:\dm\bin\coffimplib.exe "C:\Program Files (x86)\Microsoft 
SDKs\Windows\v7.0A\Lib\WinInet.Lib" wininet.lib

BTW, next time please post in digitalmars.D.learn. The bug report 
about extern(Windows) overriding pragma(mangle) belongs in 
Bugzilla. The well-known fact that D does not include Windows 
headers is merely a task waiting for someone to champion it, feel 
free to take it if you care strongly about this.


More information about the Digitalmars-d mailing list