Exception with Visual Studio 2005 C++ when using ShowWindow
Visual Studio
1
Posts
1
Posters
0
Views
1
Watching
-
I had been using Visual Studio 6 C++ and I am switching my code to Visual Studio 2005 C++. For 3 cases where I have a CWnd implemented and I try to run CWnd::ShowWindow on the implementation I get an assertion error because the program calls AfxGetThread() and AfxGetThread returns a NULL for the thread. How can I either get the ShowWindow to work correctly or is there another way I can accomplish the same task as AfxGetTread without getting the exeption