dllmain.cpp 594 B

12345678910111213141516171819202122232425
  1. // dllmain.cpp : 定义 DLL 应用程序的入口点。
  2. #include "stdafx.h"
  3. #include "..\zxinglib\zxing\common\CharacterSetECI.h"
  4. #include "..\zxinglib\zxing\common\reedsolomon\GenericGF.h"
  5. BOOL APIENTRY DllMain(HMODULE hModule,
  6. DWORD ul_reason_for_call,
  7. LPVOID lpReserved
  8. )
  9. {
  10. switch (ul_reason_for_call)
  11. {
  12. case DLL_PROCESS_ATTACH:
  13. case DLL_THREAD_ATTACH:
  14. case DLL_THREAD_DETACH:
  15. break;
  16. case DLL_PROCESS_DETACH:
  17. zxing::common::CharacterSetECI::clear_tables();
  18. zxing::GenericGF::QR_CODE_FIELD_256->uninitialize();
  19. zxing::GenericGF::QR_CODE_FIELD_256 = NULL;
  20. break;
  21. }
  22. return TRUE;
  23. }