[Mono-list] PInvoke Methods

Adam Treat manyoso@yahoo.com
Fri, 12 Apr 2002 23:20:54 -0700


On Friday 12 April 2002 10:49 pm, Daniel Morgan wrote:
> Adam,
>
> On IRC, you mentioned something about using reflection.  Is IntPtr and
> DllImport not the best way to go?

I thought you were using some reflection calls because of the weird error 
Gonzalo had with your code.  Upon looking at your code, I realized the error 
was a result of corlib/runtime being out of sync.  I think Pinvoke is what 
you are looking for.  After you've imported some function you can wrap it in 
whatever access modifiers and assemblies you'd like, so it sounds like you 
are on the right track.

Cheers,

Adam