[Mono-list] P/Invoking C++ from mono
Kornél Pál
kornelpal at hotmail.com
Fri Aug 5 12:26:22 EDT 2005
The connection point between Mono and the library is the exported function
that is called using P/Invoke. The function itself can do anything you want
as the functions it calls are not called by Mono using P/Invoke. So you can
use C++ functionality in the funtcions called using P/Invoke.
Kornél
----- Original Message -----
From: "Kala B" <kalabalun at gmail.com>
To: <Mono-list at lists.ximian.com>
Sent: Friday, August 05, 2005 1:25 PM
Subject: [Mono-list] P/Invoking C++ from mono
Hi,
When we P/Invoke a function defined as extern "C" in a C++ library,
would P/Invoke from mono work only if that function does not call any
other C++ function? (basically which has a symbol name decorated by
the C++ compiler with all name mangling)
Do all the functions that the P/Invoked function call need to be extern "C"?
Thanks & Regards
Kala B.
_______________________________________________
Mono-list maillist - Mono-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list
More information about the Mono-list
mailing list