[Mono-list] C#->C->C++, Platform Invocations from HELL!
Jonathan Pryor
jonpryor at vt.edu
Tue Dec 12 19:47:49 EST 2006
On Mon, 2006-12-11 at 04:20 -0600, R. Tyler Ballance wrote:
> 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
Short version: Yes.
Long version: http://www.mono-project.com/Dllimport
Pay special attention to the "Runtime Exception Propagation" section --
you CANNOT permit C# or C++ exceptions to pass through a P/Invoke
boundary. (The section explains why.)
- Jon
More information about the Mono-list
mailing list