问题
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