Using C++\C# .Net assemblies\DLL's in win32 C++ (unmanaged) application
There is any way to use 开发者_JAVA百科C++\C# .Net assemblies\DLL's in win32 C++ (unmanaged) applications?
Is it possible to use .Net, from any language, in C++ in a 100% pure unmanaged application?
No it is not. Using managed code requires the CLR to be in the process.
Is it possible to use .Net, from any language, in C++ in an unmanaged application that does not specifically start up the CLR?
Yes. It is possible to use the managed code via COM Interop. In this case the native code need not know that the CLR is even in process. It would create the COM objects as it would if they were defined in C++ and not know the difference.
精彩评论