C# DLL in Visual C++

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
 
P

Peter Duniho

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top