CDocTemplateEx::~CDocTemplateEx() { CWinApp* pApp = AfxGetApp(); if (pApp->m_pCmdInfo == NULL || pApp->m_pCmdInfo->m_nShellCommand != CCommandLineInfo::AppUnregister) { if (!afxContextIsDLL) SaveStdProfileSettings(); } // free recent file list if (m_pRecentFileList != NULL) delete m_pRecentFileList; }
int CWinApp::ExitInstance() /*************************/ { SaveStdProfileSettings(); return( CWinThread::ExitInstance() ); }
int CTimeMApp::ExitInstance() { int nRet = CWinAppEx::ExitInstance(); SaveStdProfileSettings(); return nRet; }