The issue with libraries that use Windows API prototypes

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Jul 9 12:42:26 PDT 2011


Btw, the issue with those conflicting functions could be resolved by
careful uses of selective imports:

import win32.wingdi;
// This overwrites win32\wingdi : wglMakeCurrent, wglDeleteContext,
wglCreateContext;
import derelict.opengl.wgl : wglMakeCurrent, wglDeleteContext, wglCreateContext;
// This overwrites win32.basetsd or wherever HGLRC is
import derelict.util.wintypes : HGLRC;

But again, that doesn't scale as it gets tedious to have to do this in
every module..


More information about the Digitalmars-d mailing list