OTSControl.cpp 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // OTSControl.cpp : Defines the initialization routines for the DLL.
  2. //
  3. #include "stdafx.h"
  4. #include "OTSControl.h"
  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #endif
  8. //
  9. //TODO: If this DLL is dynamically linked against the MFC DLLs,
  10. // any functions exported from this DLL which call into
  11. // MFC must have the AFX_MANAGE_STATE macro added at the
  12. // very beginning of the function.
  13. //
  14. // For example:
  15. //
  16. // extern "C" BOOL PASCAL EXPORT ExportedFunction()
  17. // {
  18. // AFX_MANAGE_STATE(AfxGetStaticModuleState());
  19. // // normal function body here
  20. // }
  21. //
  22. // It is very important that this macro appear in each
  23. // function, prior to any calls into MFC. This means that
  24. // it must appear as the first statement within the
  25. // function, even before any object variable declarations
  26. // as their constructors may generate calls into the MFC
  27. // DLL.
  28. //
  29. // Please see MFC Technical Notes 33 and 58 for additional
  30. // details.
  31. //
  32. // COTSControlApp
  33. BEGIN_MESSAGE_MAP(COTSControlApp, CWinApp)
  34. END_MESSAGE_MAP()
  35. // COTSControlApp construction
  36. COTSControlApp::COTSControlApp()
  37. {
  38. // TODO: add construction code here,
  39. // Place all significant initialization in InitInstance
  40. }
  41. // The one and only COTSControlApp object
  42. COTSControlApp theApp;
  43. // COTSControlApp initialization
  44. BOOL COTSControlApp::InitInstance()
  45. {
  46. CWinApp::InitInstance();
  47. return TRUE;
  48. }