G
Guest
I currently hunting a problem with a MixedMode dll, which used to work well,
until the .NET Framework 2.0 is installed on a machine. Since the, the dll
fail when loaded stating that there is a problem with the "LoaderLock" bug.
Thus, I made sure that the dll is initialized properly before any other call
into the dll is made. I also gave my dll a empty DllMain as it was proposed
by Microsoft.
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
return TRUE;
}
Since then, I get a Linker error:
mfcs71d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in
TwStratus.obj
mfcs71d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in
TwStratus.obj; second definition ignored
When I try to prevent linking with <mfcs71d.lib>, I get the following
undefined symbols:
LINK : error LNK2020: unresolved token (0A000110) atlTraceException
LINK : error LNK2020: unresolved token (0A000111) ?s_trace@CTrace@ATL@@2V12@A
I don't know how to go on. Can anyone help me?
If this is the wrong group for this problem, please let me know!
Thanks in advance
Ulrich
until the .NET Framework 2.0 is installed on a machine. Since the, the dll
fail when loaded stating that there is a problem with the "LoaderLock" bug.
Thus, I made sure that the dll is initialized properly before any other call
into the dll is made. I also gave my dll a empty DllMain as it was proposed
by Microsoft.
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
return TRUE;
}
Since then, I get a Linker error:
mfcs71d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in
TwStratus.obj
mfcs71d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in
TwStratus.obj; second definition ignored
When I try to prevent linking with <mfcs71d.lib>, I get the following
undefined symbols:
LINK : error LNK2020: unresolved token (0A000110) atlTraceException
LINK : error LNK2020: unresolved token (0A000111) ?s_trace@CTrace@ATL@@2V12@A
I don't know how to go on. Can anyone help me?
If this is the wrong group for this problem, please let me know!
Thanks in advance
Ulrich