Using C # .NET DLL in C ++ Builder?

How can I use the C # .NET DLL in C ++ Builder?
I would like to use the functions of the C # dll classes in C ++ Builder.

+4
source share
1 answer

To call managed code from unmanaged code on Windows, you pretty much need to go through COM.

In your case, this means that you create your C # library as COM Visible and register it for COM interaction.

Then you need to call your COM object from C ++ code in the usual way.

There is a good answer here that goes through the steps necessary to achieve this.

+4
source

Source: https://habr.com/ru/post/1531715/


All Articles