NGTLB10.cpp
上传用户:libwxy
上传日期:2007-01-02
资源大小:200k
文件大小:1k
源码类别:

工具条

开发平台:

Visual C++

  1. // NGTLB10.cpp : Defines the initialization routines for the DLL.
  2. //
  3. #include "stdafx.h"
  4. #include <afxdllx.h>
  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #undef THIS_FILE
  8. static char THIS_FILE[] = __FILE__;
  9. #endif
  10. static AFX_EXTENSION_MODULE NGTLB10DLL = { NULL, NULL };
  11. extern "C" int APIENTRY
  12. DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
  13. {
  14. UNREFERENCED_PARAMETER(lpReserved);
  15. if (dwReason == DLL_PROCESS_ATTACH)
  16. {
  17. TRACE0("NGTLB10.DLL Initializing!n");
  18. if (!AfxInitExtensionModule(NGTLB10DLL, hInstance))
  19. return 0;
  20. new CDynLinkLibrary(NGTLB10DLL);
  21. }
  22. else if (dwReason == DLL_PROCESS_DETACH)
  23. {
  24. TRACE0("NGTLB10.DLL Terminating!n");
  25. AfxTermExtensionModule(NGTLB10DLL);
  26. }
  27. return 1;
  28. }