hey i am doing the opengl tutorial on this site you guys suggested
can someone tell me why my compiler is ..........ing...
Code:
622 F:\drive\projects\opengl\first.cpp [Warning] passing NULL used for non-pointer converting 1 of `HWND__* CreateWindowExA(DWORD, const CHAR*, const CHAR*, DWORD, int, int, int, int, HWND__*, HMENU__*, HINSTANCE__*, void*)'
for this line...
Code:
hwnd = CreateWindowEx(NULL, "MyClass", //class name
"OpenGL Robot", //app name
dwStyle |
WS_CLIPCHILDREN |
WS_CLIPSIBLINGS,
0, 0, //x and y coords
windowRect.right - windowRect.left,
windowRect.bottom - windowRect.top,//width, height
NULL, //handle to parent
NULL, //handle to menu
hInstance,
NULL); //no xtra params
even though msdn says that parmeter can be null if no additional data is needed?