Use .NET Assemblies in Native C++ Applications
I followed the instruction http://msdn.microsoft.com/en-us/visualc/bb892742 about how to use .NET Assemblies in Native C++ Applications. Now my question is: Suppose I want to create a C++ dll where I call a .NET assembly in a similar way. Should it be possible to use LoadLibrary of this dll in a C++ native app? Or should the C++ native app in this case also be linked wi开发者_开发百科th the /clr option? The second question is: what is the penalty of using the /clr flag in a C++ native app? Performance, Compile-time, Run-time, ... ?
You can load cli c++ dll with LoadLibrary from non cli application (have done this from Delphi application). As my cli dll is small, can not make any statements about penalties.
精彩评论