Hi,
I have a large application written in native C++. I also have a class in C# that I need to call.
If the C# class was static, then it would be trivial (there's lots of examples on the web) - just write the mixed C++/CLI wrapper, export the interfaces, and you're done.
However, the C# class is non-static, and can't be changed to static as it has an interface (the compiler will generate an error if you attempt to make the C# class static).
Has anyone run into this problem before - how do I export a non-static C# class to native C++?
Update 2010-10-08
Currently evaluating both COM and the source code for the C++/CLI wrapper class (thanks by Steve and Sergey).