home *** CD-ROM | disk | FTP | other *** search
/ Supercompiler 1997 / SUPERCOMPILER97.iso / MS_DAO.SDK / DISK4 / DAOSDK.1 / daoread.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-09-14  |  1.9 KB  |  71 lines

  1. // DAORead.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "DAORead.h"
  6. #include "DAORdDlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CDAOReadApp
  15.  
  16. BEGIN_MESSAGE_MAP(CDAOReadApp, CWinApp)
  17.     //{{AFX_MSG_MAP(CDAOReadApp)
  18.         // NOTE - the ClassWizard will add and remove mapping macros here.
  19.         //    DO NOT EDIT what you see in these blocks of generated code!
  20.     //}}AFX_MSG
  21.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  22. END_MESSAGE_MAP()
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CDAOReadApp construction
  26.  
  27. CDAOReadApp::CDAOReadApp()
  28. {
  29.     // TODO: add construction code here,
  30.     // Place all significant initialization in InitInstance
  31. }
  32.  
  33. /////////////////////////////////////////////////////////////////////////////
  34. // The one and only CDAOReadApp object
  35.  
  36. CDAOReadApp theApp;
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CDAOReadApp initialization
  40.  
  41. BOOL CDAOReadApp::InitInstance()
  42. {
  43.     // Standard initialization
  44.     // If you are not using these features and wish to reduce the size
  45.     //  of your final executable, you should remove from the following
  46.     //  the specific initialization routines you do not need.
  47.  
  48.     //Enable3dControls();
  49.     AfxEnableWin40Compatibility();
  50.  
  51.     LoadStdProfileSettings();  // Load standard INI file options (including MRU)
  52.  
  53.     CDAOReadDlg dlg;
  54.     m_pMainWnd = &dlg;
  55.     int nResponse = dlg.DoModal();
  56.     if (nResponse == IDOK)
  57.     {
  58.         // TODO: Place code here to handle when the dialog is
  59.         //  dismissed with OK
  60.     }
  61.     else if (nResponse == IDCANCEL)
  62.     {
  63.         // TODO: Place code here to handle when the dialog is
  64.         //  dismissed with Cancel
  65.     }
  66.  
  67.     // Since the dialog has been closed, return FALSE so that we exit the
  68.     //  application, rather than start the application's message pump.
  69.     return FALSE;
  70. }
  71.