[Mono-list] C#->C->C++, Platform Invocations from HELL!

Mark Traudt mtraudt at quantifisolutions.com
Mon Dec 11 08:45:59 EST 2006


> I'm wondering if it is a plausible option to wrap the C++ shared
libraries with a C library, which 

> would then be wrapped by the C# platform invocation wrappers that I'd
write...

 

Have you looked at SWIG (http://www.swig.org <http://www.swig.org> )?
The C# language module generates both the C wrappers and the C# P/Invoke
wrappers, and lots of work has been put in to make sure that it deals
with issues like correctly propagating exceptions from C++ up to C#
code.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061211/4514ed37/attachment.html 


More information about the Mono-list mailing list