1.

How Do You Call Unmanaged Methods From Your .net Code Through Pinvoke?

Answer»

Supply a DllImport ATTRIBUTE. DECLARE the METHODS in your .NET code as static extern. Do not implement the methods as they are implemented in your UNMANAGED code, you’re just providing declarations for METHOD signatures.

Supply a DllImport attribute. Declare the methods in your .NET code as static extern. Do not implement the methods as they are implemented in your unmanaged code, you’re just providing declarations for method signatures.



Discussion

No Comment Found