Saturday, October 20, 2007

P/Invoke made easy

I have been using http://pinvoke.net/ for quite a while now and thought I'd share this site for anyone who has never come across it before.

It allows you to interop with unmanaged code easily by selecting the dll that contains the function you wish to use and the site gives you a C# and sometimes a VB.NET signature of the function. In addition, the site has a directory of how to code the structures, interfaces and enums etc for the unmanged function.

The site supports both desktop and devices.

No comments: