D
dan
Our company has a large legacy application that we would like to
convert to run under the CLR.
The application consists of a large collection of Dlls that have been
written in C++ and MFC over the last 10 years. We would like to
develop some standards and become aware of the best practices for
managing the DllMain() problem.
I am familiar with Microsoft's document on this subject:
http://msdn.microsoft.com/en-us/library/ms173266(vs.80).aspx
Given the trouble of the loader lock problem, it would seem preferable
to delete Dllmain routines entirely rather than surrounding the
routines with "pragma unmanaged" directives. If a DllMain is very
simple, can I simply remove it?
MFC Extension Dlls however have a Dllmain that calls the method
AfxInitExtensionModule(). Is there someway that I could build this DLL
in /CLR mode without a DllMain()? How would the extension Dll
initialize itself under managed code?
Thanks,
Dan
convert to run under the CLR.
The application consists of a large collection of Dlls that have been
written in C++ and MFC over the last 10 years. We would like to
develop some standards and become aware of the best practices for
managing the DllMain() problem.
I am familiar with Microsoft's document on this subject:
http://msdn.microsoft.com/en-us/library/ms173266(vs.80).aspx
Given the trouble of the loader lock problem, it would seem preferable
to delete Dllmain routines entirely rather than surrounding the
routines with "pragma unmanaged" directives. If a DllMain is very
simple, can I simply remove it?
MFC Extension Dlls however have a Dllmain that calls the method
AfxInitExtensionModule(). Is there someway that I could build this DLL
in /CLR mode without a DllMain()? How would the extension Dll
initialize itself under managed code?
Thanks,
Dan