4 ms·
There's actually a few other alternatives if you want to interop with straight-up C++ interfaces: 1. Use SWIG [1] to generate the C-API from the C++ headers (y
by adamjs 12y ago
There's actually a few other alternatives if you want to interop with straight-up C++ interfaces:
1. Use SWIG [1] to generate the C-API from the C++ headers (you are limited to a subset of C++: no STL, no templates, all interfaces must be pure-virtual).
2. The guys behind Mono created an amazing tool [2] that allowed you to call C++ symbols directly from managed C# code via transparent translation of the underlying ABI scheme (automatically maps the object layout, vtable layout, and name mangling scheme and emits code at runtime). They finished the GCC ABI and added partial support for MSVC ABI. Sadly the project seems to be abandoned in recent months.
[1] http://www.swig.org/ http://www.swig.org/
[2] http://tirania.org/blog/archive/2011/Dec-19.html http://tirania.org/blog/archive/2011/Dec-19.html