tags:

views:

149

answers:

3

Is there any way I can reference and use classes and methods from a managed .net assembly from within a totally unmanaged C++ application? (no /clr)

+1  A: 

You can - by hosting the CLR. I found one set of example code here . I have no way of knowing how good the advice there is though, as I've never done it.

Harper Shelby
+2  A: 

Absolutely, and this gem from CodeProject should prove helpful

You need a CCW (COM callable wrapper).

Chris Ballance
A: 

You can expose the .NET class thru COM and consume the classes thru COM.

Shay Erlichmen