Monday, February 1, 2010

how to access unmanaged code using Interop?

a) Use System.Runtime.InteropServices.
b) Use DllImport to declare the unmanaged procedure.
c) Map the data types of the procedures parameters to equivalent .NET types.
d) Call the unmanaged procedure.
e) Test it

0 Comments: