home *** CD-ROM | disk | FTP | other *** search
/ Over 1,000 Games for Windows / Over1000GamesForWindows.iso / CARDS / 7andHalf / CardGame.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2003-01-19  |  1.8 KB  |  66 lines

  1. // CardGame.cpp : Defines the class behaviors for the application.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "CardGame.h"
  6.  
  7. #ifdef _DEBUG
  8. #define new DEBUG_NEW
  9. #undef THIS_FILE
  10. static char THIS_FILE[] = __FILE__;
  11. #endif
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CCardGameApp
  15.  
  16. BEGIN_MESSAGE_MAP(CCardGameApp, CWinApp)
  17.     //{{AFX_MSG_MAP(CCardGameApp)
  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. // CCardGameApp construction
  26.  
  27. CCardGameApp::CCardGameApp()
  28. {
  29.     // TODO: add construction code here,
  30.     // Place all significant initialization in InitInstance
  31. }
  32.  
  33. /////////////////////////////////////////////////////////////////////////////
  34. // The one and only CCardGameApp object
  35.  
  36. CCardGameApp theApp;
  37.  
  38. /////////////////////////////////////////////////////////////////////////////
  39. // CCardGameApp initialization
  40.  
  41. BOOL CCardGameApp::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.     CCardGameDlg dlg;
  49.     m_pMainWnd = &dlg;
  50.     int nResponse = dlg.DoModal();
  51.     if (nResponse == IDOK)
  52.     {
  53.         // TODO: Place code here to handle when the dialog is
  54.         //  dismissed with OK
  55.     }
  56.     else if (nResponse == IDCANCEL)
  57.     {
  58.         // TODO: Place code here to handle when the dialog is
  59.         //  dismissed with Cancel
  60.     }
  61.  
  62.     // Since the dialog has been closed, return FALSE so that we exit the
  63.     //  application, rather than start the application's message pump.
  64.     return FALSE;
  65. }
  66.