Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.6 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: SingleIPIClient.cpp
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Source file of SingleIPIClient.cpp
  13. //----------------------------------------------------------------------------
  14. // MultiIPIClient.cpp : Defines the class behaviors for the application.
  15. //
  16. #include "stdafx.h"
  17. #include "MultiIPIClient.h"
  18. #include "MainDlg.h"
  19. #ifdef _DEBUG
  20. #define new DEBUG_NEW
  21. #undef THIS_FILE
  22. static char THIS_FILE[] = __FILE__;
  23. #endif
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CMultiIPIClientApp
  26. BEGIN_MESSAGE_MAP(CMultiIPIClientApp, CWinApp)
  27. //{{AFX_MSG_MAP(CMultiIPIClientApp)
  28. // NOTE - the ClassWizard will add and remove mapping macros here.
  29. // DO NOT EDIT what you see in these blocks of generated code!
  30. //}}AFX_MSG
  31. ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  32. END_MESSAGE_MAP()
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CMultiIPIClientApp construction
  35. CMultiIPIClientApp::CMultiIPIClientApp()
  36. {
  37. // TODO: add construction code here,
  38. // Place all significant initialization in InitInstance
  39. }
  40. /////////////////////////////////////////////////////////////////////////////
  41. // The one and only CMultiIPIClientApp object
  42. CMultiIPIClientApp theApp;
  43. /////////////////////////////////////////////////////////////////////////////
  44. // CMultiIPIClientApp initialization
  45. BOOL CMultiIPIClientApp::InitInstance()
  46. {
  47. AfxEnableControlContainer();
  48. AfxInitRichEdit();
  49. // Standard initialization
  50. // If you are not using these features and wish to reduce the size
  51. // of your final executable, you should remove from the following
  52. // the specific initialization routines you do not need.
  53. #ifdef _AFXDLL
  54. Enable3dControls(); // Call this when using MFC in a shared DLL
  55. #else
  56. Enable3dControlsStatic(); // Call this when linking to MFC statically
  57. #endif
  58. CMainDlg dlg;
  59. m_pMainWnd = &dlg;
  60. int nResponse = dlg.DoModal();
  61. if (nResponse == IDOK)
  62. {
  63. // TODO: Place code here to handle when the dialog is
  64. // dismissed with OK
  65. }
  66. else if (nResponse == IDCANCEL)
  67. {
  68. // TODO: Place code here to handle when the dialog is
  69. // dismissed with Cancel
  70. }
  71. // Since the dialog has been closed, return FALSE so that we exit the
  72. // application, rather than start the application's message pump.
  73. return FALSE;
  74. }