home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / WINDOWS / SSAPI10.ZIP / SSTEST.ZIP / SSTEST.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-26  |  2.3 KB  |  85 lines

  1. /******************************************************************************\
  2. *
  3. * (C) Copyright 1996 by Shetef Solutions Ltd.
  4. *
  5. * Address:
  6. *        Shetef Solutions Ltd.
  7. *        P. O. Box 7938
  8. *        Haifa 31078
  9. *        ISRAEL
  10. *
  11. * Email :     Support@shetef.com
  12. * WWW:        http://www.shetef.com
  13. * Tel:        +972-4-8260064
  14. * Fax:        +972-6-271210
  15. *
  16. \******************************************************************************/
  17. // sstest.cpp : Defines the class behaviors for the application.
  18. //
  19.  
  20. #include "stdafx.h"
  21. #include "sstest.h"
  22. #include "sstesdlg.h"
  23.  
  24. #ifdef _DEBUG
  25. #undef THIS_FILE
  26. static char BASED_CODE THIS_FILE[] = __FILE__;
  27. #endif
  28.  
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CSstestApp
  31.  
  32. BEGIN_MESSAGE_MAP(CSstestApp, CWinApp)
  33.     //{{AFX_MSG_MAP(CSstestApp)
  34.         // NOTE - the ClassWizard will add and remove mapping macros here.
  35.         //    DO NOT EDIT what you see in these blocks of generated code!
  36.     //}}AFX_MSG
  37.     ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  38. END_MESSAGE_MAP()
  39.  
  40. /////////////////////////////////////////////////////////////////////////////
  41. // CSstestApp construction
  42.  
  43. CSstestApp::CSstestApp()
  44. {
  45.     // TODO: add construction code here,
  46.     // Place all significant initialization in InitInstance
  47. }
  48.  
  49. /////////////////////////////////////////////////////////////////////////////
  50. // The one and only CSstestApp object
  51.  
  52. CSstestApp theApp;
  53.  
  54. /////////////////////////////////////////////////////////////////////////////
  55. // CSstestApp initialization
  56.  
  57. BOOL CSstestApp::InitInstance()
  58. {
  59.     // Standard initialization
  60.     // If you are not using these features and wish to reduce the size
  61.     //  of your final executable, you should remove from the following
  62.     //  the specific initialization routines you do not need.
  63.  
  64.     Enable3dControls();
  65.     LoadStdProfileSettings();  // Load standard INI file options (including MRU)
  66.  
  67.     CSstestDlg dlg;
  68.     m_pMainWnd = &dlg;
  69.     int nResponse = dlg.DoModal();
  70.     if (nResponse == IDOK)
  71.     {
  72.         // TODO: Place code here to handle when the dialog is
  73.         //  dismissed with OK
  74.     }
  75.     else if (nResponse == IDCANCEL)
  76.     {
  77.         // TODO: Place code here to handle when the dialog is
  78.         //  dismissed with Cancel
  79.     }
  80.  
  81.     // Since the dialog has been closed, return FALSE so that we exit the
  82.     //  application, rather than start the application's message pump.
  83.     return FALSE;
  84. }
  85.