2013年7月16日
摘要: C#通过DllImport可以直接调用Windows中的一些功能、C++中已经编写好的一些方法;DllImport所在的名字空间:System.Runtime.InteropServices;DllImport的用法:DllImport("smsdll.dll")]private static extern int App_Bind(int a,int b);说明: 1、DllImport只能放置在方法声明上。 2、DllImport具有单个定位参数:指定包含被导入方法的 dll 名称的 dllName 参数。 3、DllImport具有五个命名参数: a、CallingC 阅读全文
posted @ 2013-07-16 16:26 thankyou 阅读(277) 评论(0) 推荐(0)