How .Net code can call unmanaged code?

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.

 

posted @   Ready!  阅读(171)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示