Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

calling C# from c++ com add-in

Tags:

c++

c#

com

add-in

ccw

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.

like image 802
CodeLover Avatar asked Dec 20 '25 08:12

CodeLover


1 Answers

I have this links for you:
COM Interop Part 1 Sample
Create DCOM application from within .Net environment: Part V
C++ to C# call

like image 79
lsalamon Avatar answered Dec 22 '25 20:12

lsalamon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!