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

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