MsDevWizard.cpp
上传用户:hzhsqp
上传日期:2007-01-06
资源大小:1600k
文件大小:1k
源码类别:

IP电话/视频会议

开发平台:

Visual C++

  1. // MsDevWizard.cpp : Defines the initialization routines for the DLL.
  2. //
  3. #include "stdafx.h"
  4. #include <afxdllx.h>
  5. #include "MsDevWizard.h"
  6. #include "MsDevWizardaw.h"
  7. #ifdef _PSEUDO_DEBUG
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. static AFX_EXTENSION_MODULE MsDevWizardDLL = { NULL, NULL };
  12. extern "C" int APIENTRY
  13. DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
  14. {
  15. if (dwReason == DLL_PROCESS_ATTACH)
  16. {
  17. TRACE0("MSDEVWIZARD.AWX Initializing!n");
  18. // Extension DLL one-time initialization
  19. AfxInitExtensionModule(MsDevWizardDLL, hInstance);
  20. // Insert this DLL into the resource chain
  21. new CDynLinkLibrary(MsDevWizardDLL);
  22. // Register this custom AppWizard with MFCAPWZ.DLL
  23. SetCustomAppWizClass(&MsDevWizardaw);
  24. }
  25. else if (dwReason == DLL_PROCESS_DETACH)
  26. {
  27. TRACE0("MSDEVWIZARD.AWX Terminating!n");
  28. // Terminate the library before destructors are called
  29. AfxTermExtensionModule(MsDevWizardDLL);
  30. }
  31. return 1;   // ok
  32. }