C# DLL in Visual C++

  • Thread starter Thread starter J.F. Ronner
  • Start date Start date
J

J.F. Ronner

Hello,

Is it possible to use a C# DLL in a Visual C++ project?

And how should it be done..


Regards,

J.F. Ronner
 
J.F. Ronner said:
Hello,

Is it possible to use a C# DLL in a Visual C++ project?
Yes.

And how should it be done..

That all depends on the C++ project. If it's a managed executable, then
you just add the C# DLL as a reference and it works. If it's not a
managed executable, it gets more complicated. One of the most
straightforward ways I've seen it done is to expose the C# DLL as a COM
library, and then access it via COM in the C++ project.

Pete
 
Back
Top