[Mono-list] PInvoke Conventions
Wed, 18 Jul 2001 20:57:53 -0500
> > 6. If definitions are required (1 and 2 above), then is it any better
> > using class wrappers?
>1 and 2 really aren't an issue, as the necessary information can
>be determined at runtime.
>Aside: I doubt that we'll be able to handle every possible way
>that C functions and struct's work. However, I believe we can
>get enough that the rest can be handled by requiring the
>programmer to wrap the underlying API a little in C before
>exported via a PInvoke. No mechanism can be 100%, because
>we are dealing with 30 years of accumulated cruft.
I find your runtime automation argument to be very compelling. I'm in
agreement with your idea. So what would lseek look like?
Get your FREE download of MSN Explorer at http://explorer.msn.com