hi
i am trying to write a dll
every thing is working great but i can't solve this linking warning.
here is the main function and the entry point to the dll
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
but when i am trying to compile the program i get this warning:
nafxcwd.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in PARSERDLL.obj; second definition ignored
nafxcwd.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in PARSERDLL.obj; second definition ignored
i can use the force option to ignore the problem but
i prefer not to.
thank you
i am trying to write a dll
every thing is working great but i can't solve this linking warning.
here is the main function and the entry point to the dll
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
but when i am trying to compile the program i get this warning:
nafxcwd.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in PARSERDLL.obj; second definition ignored
nafxcwd.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in PARSERDLL.obj; second definition ignored
i can use the force option to ignore the problem but
i prefer not to.
thank you