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.
我有一个用C ++编写的COM加载项(不是C ++ / CLI)。我想从这个C ++ com库中调用一个C#库对象/方法。
I guess the CCW comes into picture here, which i am currently reading about.
我想这是CCW的图片,我现在正在阅读。
Are there any quick pointers to this stuff from your experience?
从你的经历中有没有快速指向这些东西?
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.
另外,我在我的Com插件中有一个方法,我希望我的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.
你能帮忙告诉我怎样才能做到这一点 - 也就是我如何将方法指针传递给C#代码,以便以后可以调用它。
Thanks.
1 个解决方案
#1
I have this links for you:
COM Interop Part 1 Sample
Create DCOM application from within .Net environment: Part V
C++ to C# call
我有这个链接:COM Interop第1部分示例从.Net环境中创建DCOM应用程序:第V部分C ++到C#调用
#1
I have this links for you:
COM Interop Part 1 Sample
Create DCOM application from within .Net environment: Part V
C++ to C# call
我有这个链接:COM Interop第1部分示例从.Net环境中创建DCOM应用程序:第V部分C ++到C#调用