Calling a C# from C++

T

Tony Mitri

Hi All,
Is there a way to instantiate a C# class and call its
methods from C++.

The C# class was built using VS.NET 2003
The C++ COM object was built using VC++ 6.0

Thanks
 
N

Nicholas Paldino [.NET/C# MVP]

Tony,

Yes, there is. You would have to export your C# assembly to COM using
the TLBEXP utility, and then access the objects/methods through your C++
code as if it was a COM object.

Hope this helps.
 

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