When building a COM DLL project with /clr the following errors
occures:
error LNK2005: _DllMain@12 already defined in msvcrt.lib(dllmain.obj)
warning LNK4243: DLL containing objects compiled with /clr is not
linked with /NOENTRY; image may not run correctly
I already tried to solve this problem with linking order correction
(http://support.microsoft.com/default...b;en-us;148652) and
the /NOENRTY addition
(http://support.microsoft.com/default...;en-us;814472). This
only solves the warning but not the linking problem.
The COM DLL project was initially built without /clr with the .Net
compiler and everything was ok.