home *** CD-ROM | disk | FTP | other *** search
- // UseATLstrX.cpp : Defines the class behaviors for the application.
-
- #include "stdafx.h"
- #include "UseATLstrX.h"
- #include "UseATLstrXDlg.h"
-
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
-
- // CUseATLstrXApp
- BEGIN_MESSAGE_MAP(CUseATLstrXApp, CWinApp)
- //{{AFX_MSG_MAP(CUseATLstrXApp)
- //}}AFX_MSG
- ON_COMMAND(ID_HELP, CWinApp::OnHelp)
- END_MESSAGE_MAP()
-
- // CUseATLstrXApp construction
- CUseATLstrXApp::CUseATLstrXApp()
- {
- }
-
- // The one and only CUseATLstrXApp object
- CUseATLstrXApp theApp;
-
- // CUseATLstrXApp initialization
- BOOL CUseATLstrXApp::InitInstance()
- {
- if (!AfxOleInit())
- {
- AfxMessageBox("Unable to register OLE libraries.");
- return FALSE;
- }
-
- CUseATLstrXDlg dlg;
- m_pMainWnd = &dlg;
-
- dlg.DoModal();
-
- return FALSE;
- }
-