Probably a weird and meaningless topic header :) Here's what I have: my
application makes it own windows using win32api and such so I don't need MFC
for that. But I do use MFC for a few things (eg easy wizard dialogs). So I
cheated and did it the following way (which I assume is the normal way for
this)
BOOL CMyApp::InitInstance()
{
//make my windows
while (GetMessage(&msg, NULL, 0, 0) > 0)
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
//clean up code
return FALSE;
}
Therefore I get MFC functionally without having to use MFC everywhere (I
dislike MFC) Ok, now my problem. When windows shutdown I don't receive any
notification, ie the clean up code doesn't get executed above. Any ideas on
how I can catch the shutdown and therefore do some needed clean up code.
When the program exits normally, eg alt-f4 or close button, everything works
fine.
thanks,
Adam Hart