Recently to system of check on work attendance, the hope can directly read the data in the attendance machine from pb, attendance machine through the usb connection computer
Attendance machine model is very important, attention to K28 or H10, preferably H10
Interface documentation can be in
http://cn.zkteco.com/download_list/& Downloadcategoryid=2 & amp; IsMode=false. Download the HTML
Note: the inside of the development kit demo of pb but very old, is a serial port or IP, H10 is the manner in which usb, technical support said demo very old very old don't see
Technical support does not answer the question, does not provide the demo, just look for the words according to the document is to make sure can get
I also wrote a piece of code, the user information is read out, hope brother really did help
(connection there is no problem, is the problem when read, read out are empty, such as the name of variable Settings into space (20) remains)
If zkem. Object. Connect_usb (MachineNum) then
If the main. Zkem. Object. ReadAllUserID (MachineNum) then
Main. Zkem. Object. ReadAllTemplate (MachineNum)
The do While the main. ZKEM. Object. GetAllUserInfo (MachineNum, ref dwEnrollNmber, ref name, ref passWord, ref privilege, ref Enabledx)
Messagebox (" ", name)
The main. Zkem. Object. GetUserTmpStr (MachineNum dwEnrollNmber, fingerIndex, ref tmpData, ref TmpLength)
Loop
The else
Return
End the if
Zkem. Object. Disconnect ()
The else
Return
End the if
CodePudding user response:
Forgot to contactContact qq 25302895
CodePudding user response:
Find someone who will Delphi, put the original manufacturer's DLL encapsulation, Pb can call correctly, I used to do,CodePudding user response:
Pb several!CodePudding user response:
I think according to try it on the second floor, so I get before, PB, after all, a lot of supportCodePudding user response:
Encapsulated with delpho to + 1, di in doing now, is to learn to oneself use the Delphi, don't want to ask for, ha ha,CodePudding user response:
Don't think that example, old reference example, plus the help file can be done