#include "base/HGDef.h" #include "base/HGInc.h" #include "base/HGUtility.h" #include "base/HGEvent.h" #include "base/HGThread.h" #include "base/HGMsgPump.h" #include #include "lang/app_language.h" #include "Manager.h" HGEvent g_event = NULL; HGThread g_hThread = NULL; Manager* g_manager = NULL; #if defined (HG_CMP_MSC) #include "qmfcapp.hpp" #include "qwinwidget.hpp" HINSTANCE g_hInst = NULL; BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpvReserved*/) { if (dwReason == DLL_PROCESS_ATTACH) { g_hInst = hInstance; } else if (dwReason == DLL_PROCESS_DETACH) { g_hInst = NULL; } return TRUE; } #else void __attribute__((constructor)) global_load(void); void __attribute__((destructor)) global_unload(void); void global_load(void) { } void global_unload(void) { } #endif