[Mono-list] How does mono translated into C++ Native Code in Linux

Rodrigo Kumpera kumpera at gmail.com
Sun Sep 16 18:05:46 UTC 2012


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120916/7aebe8c6/attachment.html>


More information about the Mono-list mailing list