code_app/modules/twainui/dllmain.cpp

50 lines
861 B
C++
Raw Permalink Normal View History

2023-05-10 12:30:07 +00:00
#include "base/HGDef.h"
2023-04-20 09:49:48 +00:00
#include "base/HGInc.h"
#include "base/HGUtility.h"
2023-05-10 12:30:07 +00:00
#include "base/HGEvent.h"
#include "base/HGThread.h"
#include "base/HGMsgPump.h"
#include <QTranslator>
#include "lang/app_language.h"
#include "Manager.h"
2023-04-20 09:49:48 +00:00
HGEvent g_event = NULL;
HGThread g_hThread = NULL;
Manager* g_manager = NULL;
2023-04-20 09:49:48 +00:00
#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