I wrote a windowing class in C++ to create windows. I'm a newbie to C++ and Windows programming. The
small program I wrote uses the windowing class to create a window and put an opengl cube in it.
My problem is this: Every once in a while, the program doesn't shutdown properly (remains in task list).
This could be due to one of 2 things as far as I can tell:
1) My code sucks
2) I added the ability to toggle from fullscreen to windowed mode (and vice versa). Using SetWindowLong,
I give the window a new style. I'm thinking that maybe this changes the hWnd, so because I can't/don't
update the device context and rendering contexts, when it comes time to shutdown and I call like ReleaseDC(hWnd,
hDC), it might not work properly.
I've been posting this in a few OpenGL forum but they aren't much help.
I've posted my source at:
I wrote the code using VC++ 6.
Any help and/or suggestions, code modifications(even unrelated to my current problem) or whatever can
be sent to email@example.com as well as posted here.
Thanks in advance...