怎么样调别人的动态库文件? 我现在做考勤系统,要用到别人考勤机的.dll文件,从考勤机里取出原始打卡记录,请问各位在C#里怎么操作? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 it is easy.the *.dll is a com, you can add it as a referrence to your project.Note: when you deploy your application, you must install com to computer too if *.dll isn't com ,how can I do? 如果你的dll文件是用.net 开发的,直接按楼上所回答的操作即可,如果你的dll文件是别的语音比如是win32 的标准开发的,不是com 但如果是标准的dll,可以采用pinvoke 方法来处理,具体你可以搜索一下pinvoke 的应用,应该很多的,祝愿你好运 比如如下:[DllImport("user.dll", SetLastError = true)] static extern uint GetWindowThreadProcessId(IntPtr hWnd, out int lpdwProcessId); 两种方法:DllImport或包装成COM组件,COM组件通用性更好但是使用复杂。 在 C# 中通过 P/Invoke 调用Win32 DLLhttp://www.microsoft.com/china/msdn/library/langtool/vcsharp/ousNET.mspx C#.net VS2005 把数据绑定到ComboBox下拉列表的时候 怎么去除掉每项空白字符 C#如何获取外网ip 谁有免费的万年历服务? 用C#操作xml文件问题!急啊!! 使用 foreach 访问集合类问题 如何把子控件的事件显露出来? C#导出Excel后有一个进程无法关闭,请各位给看看!! button是图片 点击Button以后换图片怎么实现呢 想用C# 语言来开发小型的应用软件,应该看哪些书? 请问如何将写入的文件立刻写到硬盘,防止掉电时文件丢失呢? 怎样用WMI获得移动硬盘的序列号 c#与LOTUS NOTES的连接
the *.dll is a com, you can add it as a referrence to your project.
Note: when you deploy your application, you must install com to computer too
比如如下:
[DllImport("user.dll", SetLastError = true)]
static extern uint GetWindowThreadProcessId(IntPtr hWnd, out int lpdwProcessId);
DllImport或包装成COM组件,COM组件通用性更好但是使用复杂。
http://www.microsoft.com/china/msdn/library/langtool/vcsharp/ousNET.mspx