1 //////////////////////////////////////////////
\r
8 int APIENTRY WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
\r
15 // Run the application
\r
16 return theApp.Run();
\r
19 // catch all exceptions inherited from std::exception
\r
20 catch (std::exception &e)
\r
22 // Process the exception and quit
\r
29 // Definitions for the CFormApp class
\r
30 CFormApp::CFormApp()
\r
34 CFormApp::~CFormApp()
\r
38 BOOL CFormApp::InitInstance()
\r
40 //Create the Frame Window
\r
43 //End the program if the frame window creation fails
\r
44 if (!m_Frame.GetHwnd())
\r
46 ::MessageBox(NULL, _T("Failed to create Frame window"), _T("ERROR"), MB_ICONERROR);
\r