EGMenuApp.cpp
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 1k
Category:

Graph program

Development Platform:

Visual C++

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