mixing C++ interface with C#

bwells

Regular
Joined
Feb 25, 2003
Messages
84
I have built a managed C++ interface in an assembly. When I try and write a C# class that implements the interface declared in the C++ interface, I get a compile error that the class is not found.

I thought I could do this, but perhaps it is not possible to write an interface in C++ and implement it in C#?

But I can write a class in managed C++ and make an instance of the class in C#. Can someone explain to me what is going on when I try and write an interface to be implemented by c# and c++?

thanks
Bryan
 
Last edited:
I probably have no idea what I am talking about and am guessing. But I will give you my guess:

.net languages mingle together, but pure c++ is not .net. I hope my guess is right and that you understand what I mean.
 
Back
Top