PropSheet Wizard.cpp
上传用户:apjinmao
上传日期:2007-01-02
资源大小:96k
文件大小:1k
源码类别:

PropertySheet

开发平台:

Visual C++

  1. // PropSheet Wizard.cpp : Defines the initialization routines for the DLL.
  2. //
  3. #include "stdafx.h"
  4. #include <afxdllx.h>
  5. #include "PropSheet Wizard.h"
  6. #include "PropSheet Wizardaw.h"
  7. #ifdef _PSEUDO_DEBUG
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. static AFX_EXTENSION_MODULE PropSheetWizardDLL = { 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("PROPSHEET WIZARD.AWX Initializing!n");
  18. // Extension DLL one-time initialization
  19. AfxInitExtensionModule(PropSheetWizardDLL, hInstance);
  20. // Insert this DLL into the resource chain
  21. new CDynLinkLibrary(PropSheetWizardDLL);
  22. // Register this custom AppWizard with MFCAPWZ.DLL
  23. SetCustomAppWizClass(&PropSheetWizardaw);
  24. }
  25. else if (dwReason == DLL_PROCESS_DETACH)
  26. {
  27. TRACE0("PROPSHEET WIZARD.AWX Terminating!n");
  28. }
  29. return 1;   // ok
  30. }