home *** CD-ROM | disk | FTP | other *** search
/ The Houseplan Collection / HRCD2005.ISO / data1.cab / Zusatz / 3DS / DATA2.Z / OEM.cpp < prev    next >
C/C++ Source or Header  |  1998-08-30  |  1KB  |  65 lines

  1. // OEM.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "OEM.h"
  6. #include "OEMDlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // COEMApp
  16.  
  17. BEGIN_MESSAGE_MAP(COEMApp, CWinApp)
  18.     //{{AFX_MSG_MAP(COEMApp)
  19.     //}}AFX_MSG
  20.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  21. END_MESSAGE_MAP()
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // COEMApp construction
  25.  
  26. COEMApp::COEMApp()
  27. {
  28. }
  29.  
  30. /////////////////////////////////////////////////////////////////////////////
  31. // The one and only COEMApp object
  32.  
  33. COEMApp theApp;
  34.  
  35. /////////////////////////////////////////////////////////////////////////////
  36. // COEMApp initialization
  37.  
  38. BOOL COEMApp::InitInstance()
  39. {
  40.     AfxEnableControlContainer();
  41.  
  42.     // Standard initialization
  43.   AfxOleInit();
  44.  
  45. #ifdef _AFXDLL
  46.     Enable3dControls();            // Call this when using MFC in a shared DLL
  47. #else
  48.     Enable3dControlsStatic();    // Call this when linking to MFC statically
  49. #endif
  50.  
  51.     COEMDlg dlg;
  52.     m_pMainWnd = &dlg;
  53.     int nResponse = dlg.DoModal();
  54.     if (nResponse == IDOK)
  55.     {
  56.     }
  57.     else if (nResponse == IDCANCEL)
  58.     {
  59.     }
  60.  
  61.     // Since the dialog has been closed, return FALSE so that we exit the
  62.     //  application, rather than start the application's message pump.
  63.     return FALSE;
  64. }
  65.