如何从c#访问指纹考勤设备? [英] how to access finger print attendance device from c#?
问题描述
亲爱的朋友们,
在我的应用程序中,我需要访问指纹设备并为员工提供日常出勤服务。所以请任何人指导我如何使用VS 2008和C#连接和访问设备。
我有一些dll文件'如1. commpro.dll 2 .comms.dll 3. msvcr70.dll 4.msvcr71.dll 5.rsagent.dll 6.rsagentlst.dll 7.rscagent.dll 8.rscomm.dll 9.zkemkeeper.dll和10.zkemsdk.dll。但我尝试将这些添加到引用中,我收到错误,我无法将这些dll添加到我的应用程序中。
注意:
我们的客户购买ESSL的X990指纹设备他们(公司)没有软件包,而不是给一些DLL文件。我接下来会做什么?
Dear Friends,
In my application, i need to access fingerprint device and get everyday attendance for the employees. So please anyone guide me how to connect and access the device by using VS 2008 and C#.
I have some dll file''s like 1. commpro.dll 2. comms.dll 3. msvcr70.dll 4.msvcr71.dll 5.rsagent.dll 6.rsagentlst.dll 7.rscagent.dll 8.rscomm.dll 9.zkemkeeper.dll and 10.zkemsdk.dll. but i try to add those into references, i got error and i could not add those dll to my application.
Note:
our client purchasing ESSL''s X990 fingerprint device they(company) won''t have software kit instead of give some dll files. what will i do next?
推荐答案
可能你拥有的文件不是.NET程序集,而是普通的旧vanilla DLL文件。您不通过添加引用来访问它们,而是必须使用P / Invoke来访问DLL方法。
MSDN:P / Invoke to DLL [ ^ ]
与硬件制造商交谈可能是一个想法 - 他们可能有可用的功能原型,甚至如果幸运的话,可以使用.NET包装器。
Probably, the files you have are not .NET assemblies, but plain old vanilla DLL files. You do not access them by adding references, instead you have to use P/Invoke to access the DLL methods.
MSDN: P/Invoke to DLL[^]
It might be an idea to talk to the hardware manufacturer - they may have the function prototypes available, or even a .NET wrapper class if you are lucky.
这篇关于如何从c#访问指纹考勤设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!