DLL loading behaviors and pragma(lib)

David Zhang via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 10 16:18:22 PDT 2017


I've been working on getting OpenGL to load on windows without a 
library, and encountered something curious;

Context creation fails when I try to use the function pointer 
retrieved through GetProcAddress, but works just fine with the 
statically linked version provided through 
core.sys.windows.wingdi.d.

This may be a stupid question, but why is this?

Thanks.


More information about the Digitalmars-d-learn mailing list