非托管代码调用托管代码 [英] Unmanaged code call Managed code
问题描述
首先,我想对谢尔盖·亚历山德罗维奇·克鲁科夫(Sergey Alexandrovich Kryukov)之前提出的问题在vc6.0中主机控制wpf?表示衷心的感谢。因为问题已经关闭所以我必须在此感谢你,希望你能注意到这一点。
现在我想知道我是否可以从非托管代码中调用托管代码,因为应用程序的一个组件已经开发通过.Net,由C ++开发的一个组件,更多细节,我想在VC6.0中调用托管方法(由dll),如果答案是否定,如果我可以在VS2010(C ++)中调用托管方法,那么我编译两者都是dll,我在VC6.0中使用这个dll?
有谁知道?请给我一些解释或一些页面供uri阅读。谢谢!
First, I want to express my most sincere thanks to Sergey Alexandrovich Kryukov for my previous question "Host wpf control in vc6.0?" Beause the question has been closed so i have to thank you here, hope you can notice this.
Now i want to know if i can call Managed code from Unmanaged code, because one component of application is developed by .Net, one component developed by C++,for more details, I want to call managed method in VC6.0( by dll), if the answer is no, if i can call managed method in VS2010 (C++), then i compile both to dll, and i use this dll in VC6.0?
Anybody knows? Give me some explains or some pages to read by uri please. Thank you!
推荐答案
从非托管代码调用托管代码,反之亦然CodeProject上的文章 [ ^ ]
这篇关于非托管代码调用托管代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!