简体   繁体   中英

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 with 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM