开发者

Loading managed dll into AppDomain from native c++ code

开发者 https://www.devze.com 2022-12-19 04:54 出处:网络
I want to load managed assembly into the AppDomain from native c++ code开发者_如何学JAVA. If it worth something the native code is a CLR profiler so I get notification each time AppDomain is created.

I want to load managed assembly into the AppDomain from native c++ code开发者_如何学JAVA.

If it worth something the native code is a CLR profiler so I get notification each time AppDomain is created.


I believe you need to host CLR.


You're probably looking for ICLRRuntimeHost::ExecuteInDefaultAppDomain(). It will load an assembly into the default AppDomain. You asked about loading into "the" AppDomain, so presumably you don't care about other non-default AppDomains.

ICLRRuntimeHost is a COM interface, and thus available to native code.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号