calling C# from c++ com add-in

北城以北 提交于 2019-12-18 04:24:10

问题


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.

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?

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.

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.

Thanks.


回答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



来源:https://stackoverflow.com/questions/530244/calling-c-sharp-from-c-com-add-in

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!