OutlookExpress.cpp 1.5 KB

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