4
votes

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

1

1 Answers

4
votes

In order to call managed code from unmanaged code under Windows, you pretty much have to go through COM.

In your case, this means building your C# library as COM Visible and registering it for COM Interoperation.

Then you need to invoke your COM object from the C++ code in the normal way.

There's a good answer here which goes through the steps necessary to achieve this.