Re: Closing app gracefully on windows shutdown

Tech-Archive recommends: Fix windows errors by optimizing your registry



I've always thought that a good option (ie optional) would be that instead of just a comment 'put your code here', would be to actually include commented code unique to the particular function with an example and/or explanation of what to do

Jan M wrote:
Hi,

Update to my previous conclusion. If you disobey the MS wizard and put you
cleanup code in CYourFrameWnd::OnEndSession(bEnding) before calling
CFrameWnd::OnEndSession(bEnding) (which kills the app if bEnding = true) it
works. Dumb wizards!

Jan



.