I can't for the life of me remember what message you need to post to force an MFC application to exit. POstQuitMessage won't do, because the destructors for your doc/view stuff don't get called properly.
Orion
Printable View
I can't for the life of me remember what message you need to post to force an MFC application to exit. POstQuitMessage won't do, because the destructors for your doc/view stuff don't get called properly.
Orion
dose DestroyWindow of Mainframe works out properly ??
Mukthar
Did you try to post WM_CLOSE to the main window.
AfxGetMainWnd()->PostMessage(WM_CLOSE, 0, 0);
[email protected]
Bangalore
Hi......
Try PostMessage one of
WM_DESTROY, or, WM_QUIT.
or simply call ExitThread, or to force destroy any Win thread TerminateThread.
or to exit any process ExitProcess, or to force kill any Win APP TerminateProcess.
Good Luck.
Art
AAvetyan