[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"
> function.
>
> 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:
>
>> Hi,
>> I need to call Natvie Linux C++ code with a Pinvoke and passing a
>> AutoReset
>> Event, my problem is I do not know what  Mono translate the AutoReset
>> Event
>> handler . I need to find out how to be able to signal the AutoReset Event
>> from C++.
>>
>> Please advice.
>> Thanks in advice.
>> John
>>
>>
>>
>> --
>> View this message in context:
>> http://mono.1490590.n4.nabble.com/How-does-mono-translated-into-C-Native-Code-in-Linux-tp4656633.html
>> Sent from the Mono - General mailing list archive at Nabble.com.
>> _______________________________________________
>> Mono-list maillist  -  Mono-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-list
>>
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120917/4eeb5064/attachment.html>


More information about the Mono-list mailing list