[Mono-list] Embedding Mono : Classes

Chris Howie cdhowie at gmail.com
Thu Jul 16 04:33:13 EDT 2009


On Thu, Jul 16, 2009 at 3:44 AM, Robert Jordan<robertj at gmx.net> wrote:
> Chris Howie wrote:
>> On Wed, Jul 15, 2009 at 6:45 PM, Alex
>> Kuster<x.passion.and.the.opera.x at gmail.com> wrote:
>>> and, how do I take parameters in a internal function call ?
>>
>> It's no different from P/Invoke, if you are familiar with that.  You
>> are simply writing the P/Invoke target in your embedding app, instead
>> of in a library.  Read up on P/Invoke, it will be very useful
>> knowledge.
>>
>
> There are more or less subtle differences between p/invoke
> and icalls:
>
> [snip]

Ah, I see.  I was speaking of [DllImport("__Internal")], not
[MethodImpl(MethodImplOptions.InternalCall)].  It should be noted that
the former follows the regular P/Invoke rules, at the cost of
performance (since marshaling occurs).  The latter is faster, but
requires that you marshal things yourself.

-- 
Chris Howie
http://www.chrishowie.com
http://en.wikipedia.org/wiki/User:Crazycomputers


More information about the Mono-list mailing list