[Mono-list] How does mono translated into C++ Native Code in Linux
Daniel Lo Nigro
lists at dan.cx
Sun Sep 16 23:56:16 UTC 2012
If you want to call a C++ class, you can use SWIG to generate all the
P/Invoke wrapper code. http://www.swig.org/
On Mon, Sep 17, 2012 at 4:05 AM, Rodrigo Kumpera <kumpera at gmail.com> wrote:
> P/invoke can only call C functions, so you need to wrap it an "extern C"
> Beyond that, mono will not marshal the AutoReset Event into something
> usable to you,
> so my suggestion is to pass a delegate that does it for you.
> On Fri, Sep 14, 2012 at 4:33 PM, John Chen <johnxhc at gmail.com> wrote:
>> I need to call Natvie Linux C++ code with a Pinvoke and passing a
>> Event, my problem is I do not know what Mono translate the AutoReset
>> handler . I need to find out how to be able to signal the AutoReset Event
>> from C++.
>> Please advice.
>> Thanks in advice.
>> View this message in context:
>> Sent from the Mono - General mailing list archive at Nabble.com.
>> Mono-list maillist - Mono-list at lists.ximian.com
> Mono-list maillist - Mono-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list