[Mono-list] Re: P/Invoke IntPtr versus byte[]

Tim Rädisch tim.raedisch@udo.edu
Sat, 3 Jul 2004 22:26:56 +0200


One Copy&Paste-error. The first DllImport was not byte[] but IntPtr :)

[...]

Because it is a "const void*" I used the following DllImport statement
  [ DllImport(lib) ]
  static extern void multiDimArrayTest( IntPtr elems );
and this methode call
  multiDimArrayTest( GCHandle.Alloc( mdArray,
GCHandleType.Pinned).AddrOfPinnedObject() );

[...]


Tim