为什么只有一个DllMain却提示重定义
HINSTANCE hmod;BOOL APIENTRY DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
// Remove this if you use lpReserved
hmod = hInstance;
return 1;
}
明明只有一个_DllMain却提示:
nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in KeybHook.obj
nafxcwd.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in KeybHook.obj; second definition ignored
Creating library Debug/KeybHook.lib and object Debug/KeybHook.exp
Debug/KeybHook.dll : fatal error LNK1169: one or more multiply defined symbols found