dllmain.cpp 752 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // dllmain.cpp : 定义 DLL 应用程序的入口点。
  2. #include "stdafx.h"
  3. #define CRTDBG_MAP_ALLOC
  4. #include <stdlib.h>
  5. #include <crtdbg.h>
  6. #include <conio.h>
  7. #include "ResDataObject.h"
  8. BOOL APIENTRY DllMain( HMODULE hModule,
  9. DWORD ul_reason_for_call,
  10. LPVOID lpReserved
  11. )
  12. {
  13. switch (ul_reason_for_call)
  14. {
  15. case DLL_PROCESS_ATTACH:
  16. case DLL_THREAD_ATTACH:
  17. case DLL_THREAD_DETACH:
  18. case DLL_PROCESS_DETACH:
  19. break;
  20. }
  21. return TRUE;
  22. }
  23. //int _stdcall WinMain(
  24. // HINSTANCE hInstance,
  25. // HINSTANCE hPrevInstance,
  26. // LPTSTR lpCmdLine,
  27. // int nCmdShow
  28. // )
  29. //{
  30. //
  31. // ResDataObject_Pair *m_pair = new ResDataObject_Pair();
  32. // delete m_pair;
  33. //
  34. // _CrtDumpMemoryLeaks();
  35. //
  36. //
  37. // _getch();
  38. //
  39. // return 1;
  40. //}