现在的位置: 首页 > 综合 > 正文

How .Net code can call unmanaged code?

2011年08月02日 ⁄ 综合 ⁄ 共 298字 ⁄ 字号 评论关闭

There are two ways:

.Directly call a function exported from a DLL.

.Call an interface method on a COM object.

 

For both techniques, you must provide the C# compiler with a declaration of the unmanaged function, and you may also need to provide the C# compiler with a description of how to marshal the parameters and return value to and from the unmanaged code.

 

抱歉!评论已关闭.