Original Post
How would I create a window without using the winmain function? I know it can be done, libraries like SDL and GLUT do it, but I can't seem to find anything on it...
Quote:
Original post by methinks
How would I create a window without using the winmain function? I know it can be done, libraries like SDL and GLUT do it, but I can't seem to find anything on it...
Quote:
Original post by Ximmer
you make a window using main the same way you make a window using WinMain, except you need to get your HINSTANCE handle using GetModuleHandle(NULL)
Quote:
Original post by SirKnight
I think you can also close the console window while leaving your other window up. Can't remember what the api call for that is though....
LRESULT (dWindowsCommon::)(HWND__*, UINT, WPARAM, LPARAM)' does not match LRESULT (*)(HWND__*, UINT, WPARAM, LPARAM)'Quote:
Original post by methinks
I think I have most of it figured out, but now I'm stuck with the WNDPROC
I think the problem is that the WNDPROC, being a callback function, shouldn't be a member of a class, as that messes up the pointer to it. How then do I go about declaring it?
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more