请问:C#怎样使用或者说调用API函数?(15分)

Z

zbr

Unregistered / Unconfirmed
GUEST, unregistred user!
请问:C#怎样使用或者说调用API函数?
 
importdll关键字吧 没玩过 C# 不过隐约记得一点
 
谢谢Linuxping,谁能详细点 ?
 
[DllImport("User32.dll")]
public extern static IntPtr GetWindowDC(IntPtr hWnd);
 
[DllImport("User32.dll")]
写在哪里。好像提示有问题。
 
写到一个类里,作为静态方法调用。。。
 
哪位兄弟给举个例子 。
 
这里有例子:http://www.mini188.com/showtopic-161.aspx
 
够懒的了,百度一下一堆哦...
 
多人接受答案了。
 
顶部