[Mono-list] PInvoke Conventions
Fergus Henderson
fjh@cs.mu.oz.au
Thu, 26 Jul 2001 02:22:11 +1000
On 20-Jul-2001, Rhys Weatherley <rweather@zip.com.au> wrote:
> Miguel de Icaza wrote:
>
> > afraid that adding even more attributes is not going to help out.
>
> You may be right. "stat" is certainly a problem.
I think it is unlikely that you'll be able to do it *all* using only
managed code. I think it would be easier to just bite the bullet and
accept that there will be some unmanaged code. This code can be written
in C (or perhap C++), and will get compiled to a platform-specific native
code library.
Once you accept that, then "stat" is no real problem, you just have
to write some glue code in C that wraps up stat() and presents an
interface that you can access using a platform-independent PInvoke.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.