调用C#从C ++ COM加载项 [英] calling C# from c++ com add-in
问题描述
我已经写在C ++(不是C ++ / CLI)的COM加载。我想打电话从这个C ++ COM库一个C#库对象/方法。
I have a COM add-in written in C++ (not C++ / CLI). I want to call a C# library objects/methods from this C++ com library.
我猜CCW进入图片浏览,我目前阅读。
I guess the CCW comes into picture here, which i am currently reading about.
是否有任何快速指针,这个东西从你的经验?
Are there any quick pointers to this stuff from your experience?
另外,我在我的COM添加 - 方法在这我想我的C#库代码来调用 - 即方法指针调用
Also, i have a method in my Com add-in that i would like my C# library code to call - i.e. a method pointer invocation.
您可以帮告诉我,我怎么能做到这一点,请 - 即我怎么去有关该方法的指针传递给C#代码,以便它可以在其上再打。
Can you help telling me how i can do this please - i.e. how do i go about passing the method pointer to the C# code so it can call on it later.
感谢。
推荐答案
我有这个链接给你:结果
的 COM互操作第一部分样品结果
的从.NET环境中创建DCOM应用程序:第五部分结果
的 C ++到C#调用
I have this links for you:
COM Interop Part 1 Sample
Create DCOM application from within .Net environment: Part V
C++ to C# call
这篇关于调用C#从C ++ COM加载项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!