can this be done
From: ed (ed_at_discussions.microsoft.com)
Date: 12/29/04
- Next message: tsteinke_at_gmail.com: "Supressing First chance Exceptions"
- Previous message: KaKeeware: "ANN: API Monitor"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 29 Dec 2004 14:39:01 -0800
I'd like to catch all possible exceptions in my application. It is a
relatively simply application with one CWnd object that takes care of all the
functionality in the application.
If I did something like the below in my CMyApp::InitInstance()
implementation would it catch all the exceptions that might occur within the
CWnd (called My_Main_CWnd).
BOOL CMyApp::InitInstance()
{
CWinApp::InitInstance();
TRY
{
// Create a CWnd object called My_Main_CWnd
m_pMainWnd = &My_Main_CWnd;
My_Main_CWnd.ShowWindow(SW_SHOW);
My_Main_CWnd.UpdateWindow();
m_pMainWnd->RunModalLoop(0);
}
CATCH_ALL(error)
{
//deal with the exception
}
END_CATCH_ALL;
}
return FALSE;
}
- Next message: tsteinke_at_gmail.com: "Supressing First chance Exceptions"
- Previous message: KaKeeware: "ANN: API Monitor"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading