DittoUtil.cpp 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // DittoUtil.cpp : Defines the initialization routines for the DLL.
  2. //
  3. #include "stdafx.h"
  4. #include "DittoUtil.h"
  5. #include "PasteImageAsHtmlImage.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. // CDittoUtilApp
  36. BEGIN_MESSAGE_MAP(CDittoUtilApp, CWinApp)
  37. END_MESSAGE_MAP()
  38. // CDittoUtilApp construction
  39. CDittoUtilApp::CDittoUtilApp()
  40. {
  41. // TODO: add construction code here,
  42. // Place all significant initialization in InitInstance
  43. }
  44. // The one and only CDittoUtilApp object
  45. CDittoUtilApp theApp;
  46. // CDittoUtilApp initialization
  47. BOOL CDittoUtilApp::InitInstance()
  48. {
  49. CWinApp::InitInstance();
  50. return TRUE;
  51. }
  52. int CDittoUtilApp::ExitInstance()
  53. {
  54. CPasteImageAsHtmlImage::CleanupPastedImages();
  55. return CWinApp::ExitInstance();
  56. }