[Mono-list] Using exported C++ classes in managed code

Jonathan Pryor jonpryor at vt.edu
Tue Apr 8 07:08:27 EDT 2008


On Tue, 2008-04-08 at 12:47 +0200, Kornél Pál wrote:
> Hi,
> 
> .NET Framework supports COM objects being marshaled as managed objects.
> 
> By now Mono has very good COM interop support thanks to Jonathan Chambers. 
> You should try it out:
> http://www.mono-project.com/COM_Interop

Alas COM interop support requires COM-like classes -- interface based,
reference counted, etc.  It doesn't permit immediate reuse of existing 
C++ code unless that code was already providing COM objects...

Beyond that, for binding arbitrary C++ code the "state of the art"
hasn't progressed much: manual C wrappers and SWIG are currently it.

 - Jon




More information about the Mono-list mailing list