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 <[email protected]> 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 - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list >
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
