[Mono-list] Re: PInvoke Conventions

Steve Newman steve@snewman.net
Wed, 18 Jul 2001 07:08:47 -0700

>Date: Wed, 18 Jul 2001 12:02:33 +1000
>From: Rhys Weatherley <rweather@zip.com.au>
>To: mono-list@ximian.com
>Subject: [Mono-list] PInvoke Conventions
>I've been investigating PInvoke support for Portable.NET,
>and I've come across some icky issues that will probably
>affect Mono's VM as well.
>I have placed the following document on my Web site that
>describes how I think this can be resolved:

Nice work.  One minor comment: this describes string parameters as being converted into a pointer to a "native char array".  For out and ref parameters, how do you determine the size for this array?  Seems like this would have to be under programmer control, e.g. specified in a marshalling attribute.

-- Steve