Reputation: 111
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.
Upvotes: 4
Views: 3073
Reputation: 11840
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.
Upvotes: 4