home *** CD-ROM | disk | FTP | other *** search
/ Mastering MFC Development / MMD.ISO / samples / c13 / useatltrigx / useatltrigx.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-20  |  837 b   |  43 lines

  1. // UseAtlTrigX.cpp : Defines the class behaviors for the application.
  2.  
  3. #include "stdafx.h"
  4. #include "UseAtlTrigX.h"
  5. #include "UseAtlTrigXDlg.h"
  6.  
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13. // CUseAtlTrigXApp
  14. BEGIN_MESSAGE_MAP(CUseAtlTrigXApp, CWinApp)
  15.     //{{AFX_MSG_MAP(CUseAtlTrigXApp)
  16.     //}}AFX_MSG
  17.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  18. END_MESSAGE_MAP()
  19.  
  20. // CUseAtlTrigXApp construction
  21. CUseAtlTrigXApp::CUseAtlTrigXApp()
  22. {
  23. }
  24.  
  25. // The one and only CUseAtlTrigXApp object
  26. CUseAtlTrigXApp theApp;
  27.  
  28. // CUseAtlTrigXApp initialization
  29. BOOL CUseAtlTrigXApp::InitInstance()
  30. {
  31.     if (!AfxOleInit())
  32.     {
  33.         AfxMessageBox("Unable to register OLE libraries.");
  34.         return FALSE;
  35.     }
  36.  
  37.     CUseAtlTrigXDlg dlg;
  38.     m_pMainWnd = &dlg;
  39.     dlg.DoModal();
  40.  
  41.     return FALSE;
  42. }
  43.