Given the above, the CreateWindowEx function is returning NULL, so hwn is set to null, MSDN says that I should use GetLastError to find extended information, but GetLastError is returning 0...Code:s = WS_POPUP; xs = WS_EX_APPWINDOW; if(!(hwn = CreateWindowEx(xs,"OpenGL",WINDOW_NAME,s,0,0,rect.right-rect.left,rect.bottom-rect.top,NULL,NULL,hin,NULL))) { error[8] = true; exerror[8] = GetLastError(); }
I have triple checked all the parameters, they seem to be fine.



LinkBack URL
About LinkBacks


