// This is the initial entry point into an MFC app. Normally this is in the
// MFC library: mfc\src\winmain.cpp
int AFXAPI AfxWinMain(HINSTANCE hInstance,
// Wrap WinMain in a structured exception handler (different from C++
// exception handling) in order to make sure that all access violations
// and other exceptions are displayed - regardless of when they happen.
// This should be done for each thread, if at all possible, so that exceptions
// will be reliably caught, even inside the debugger.
TRACE(_T("in ExceptionAttacher.cpp - AfxWinMain\n"));
// The code inside the __try block is the MFC version of AfxWinMain(),
// copied verbatim from the MFC source code.
ASSERT(hPrevInstance == NULL);
int nReturnCode = -1;
CWinApp* pApp = AfxGetApp();
_T("ExceptionAttacher.cpp - AfxWinMain")))
// Do nothing here - RecordExceptionInfo() has already done
// everything that is needed. Actually this code won't even
// get called unless you return EXCEPTION_EXECUTE_HANDLER from
// the __except clause.