home *** CD-ROM | disk | FTP | other *** search
/ 3D Games - Real-time Rend…ng & Software Technology / 3D Games - Real-time Rendering & Software Technology.iso / flysdk / util / flyConfig / flyConfig.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-17  |  1.3 KB  |  61 lines

  1. // flyConfig.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "flyConfig.h"
  6. #include "flyConfigDlg.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. // CFlyConfigApp
  16.  
  17. BEGIN_MESSAGE_MAP(CFlyConfigApp, CWinApp)
  18.     //{{AFX_MSG_MAP(CFlyConfigApp)
  19.     //}}AFX_MSG
  20.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  21. END_MESSAGE_MAP()
  22.  
  23. /////////////////////////////////////////////////////////////////////////////
  24. // CFlyConfigApp construction
  25.  
  26. CFlyConfigApp::CFlyConfigApp()
  27. {
  28. }
  29.  
  30. /////////////////////////////////////////////////////////////////////////////
  31. // The one and only CFlyConfigApp object
  32.  
  33. CFlyConfigApp theApp;
  34.  
  35. /////////////////////////////////////////////////////////////////////////////
  36. // CFlyConfigApp initialization
  37.  
  38. BOOL CFlyConfigApp::InitInstance()
  39. {
  40.     AfxEnableControlContainer();
  41.  
  42.     // Standard initialization
  43.  
  44. #ifdef _AFXDLL
  45.     Enable3dControls();            // Call this when using MFC in a shared DLL
  46. #else
  47.     Enable3dControlsStatic();    // Call this when linking to MFC statically
  48. #endif
  49.  
  50.     int ret=IDOK;
  51.  
  52.     while( ret==IDOK )
  53.     {
  54.         CFlyConfigDlg dlg;//=new CFlyConfigDlg;
  55.         ret = dlg.DoModal();
  56. //        delete dlg;
  57.     }
  58.  
  59.     return FALSE;
  60. }
  61.