Establishing Direct Connection To BM ZKEMKeeper
Establishing Direct Connection To BM ZKEMKeeper
with the Standalone development for ZKEMSDK (i.e. ZkemKeeper.dll). This tutorial will describe how to see check if your purchased device is actually connected to your .NET software system via TCP/IP protocol. First of all, you need to go to your machines user manual to see how to set the IP of the scanning machine. Then you can ping your machines IP to see if it exists in your LAN. Next, you need to copy all the .dll files in your SDK directory to the your windows system32 folder. Click start -> run. Type cmd in the open dialog. Change the directory to your windows system32 folder in the command prompt. Type regsvr32 Zkemkeeper.dll to register your dll. There will be a successful notice appearing in the screen.
To add a reference to your zkemkeeper.dll, right click the Reference node under your time and attendance project node inside the solution explorer window. Click the Add Reference menu. In the new pop up window, under COM tab loate and select the ZKEMKeeper6.0 Control. Click the OK button.
Declare your connection object as the following code. private zkemkeeper.CZKEM machineObj; machineObj = new zkemkeeper.CZKEM(); In the click event of the Test connection button, add the following code. bool status = false; status = machineObj.Connect_Net(ip_address, 4370);