1 ///////////////////////////////////////////////
\r
2 //ExplorerApp.cpp - Definitions for the CExplorerApp class
\r
5 #include "ExplorerApp.h"
\r
6 #include "resource.h"
\r
9 CExplorerApp::CExplorerApp()
\r
13 CExplorerApp::~CExplorerApp()
\r
15 ::CoUninitialize(); // Shut down COM
\r
18 BOOL CExplorerApp::InitInstance()
\r
21 if (FAILED(CoInitialize(NULL)))
\r
23 ::MessageBox(NULL, _T("Failed to initialize COM"), _T("ERROR"), MB_ICONERROR);
\r
27 //Create the Frame Window
\r
28 if (!m_Frame.Create())
\r
30 // We get here if the Frame creation fails
\r
32 ::MessageBox(NULL, _T("Failed to create Frame window"), _T("ERROR"), MB_ICONERROR);
\r
33 return FALSE; // returning FALSE ends the application
\r