
return a value when an MFC dialog-based app exits
Hi!
Quote:
> Can I override CWinApp::ExitInstance?
> By default it shows this->
> int CFcApp::ExitInstance()
> {
> // TODO: Add your specialized code here and/or call the base class
> return CWinApp::ExitInstance();
> }
> can I replace -> return CWinApp::ExitInstance();
> with -> return myvalue;
If you do it like that, you'll lose the cleanup that CWinApp::ExitInstance performs, but you can do
it something like this...
int CFcApp::ExitInstance()
{
CWinApp::ExitInstance();
return myvalue;
Quote:
}
HTH,
Jeff...
--
Please post all follow-ups to the newsgroup only.