Re: For: Easy platform invoke
Posted by:
Tim (---.gotadsl.co.uk)
Date: Friday, 24-Sep-2004, 08:27:46
Good points; but I didn't intend to argue that .NET platform invoke is easier than calling native DLLs from unmanaged code such as C, C++ or Delphi (Win32). I am really comparing .NET and Java here. Surprisingly, .NET also has some advantages over VB 6 when calling the API, but that's more a comment on how difficult VB made it.
.NET does at least have mechanisms to deal with the issues you mention. In addition, pinning memory and so on is not necessary for the majority of calls to unmanaged code, but only in certain cases.
Tim