现在我正在使用此代码使用 c# 将我的设备与我的电脑连接起来。我想将我的设备与我的系统连接,并用我的设备生成一个新信号到 c# 中的 pc,我想将我的数据存储在我的窗口窗体设计中,当指纹的时间到来时,我将手指放在我的设备上他们抓住我的手指并在图片框中的窗口中显示我的手指扫描,然后数据将存储在我的数据库中。我使用 SqlServer 数据库。提前致谢。
bool bIsConnected = axCZKEM1.Connect_Net(ipaddress, port); // 4370 is port no of attendance machine
if (bIsConnected == true)
{
IDtextBox1.Enabled = true;
name_textBox2.Enabled = true;
designation_textBox3.Enabled = true;
string title = "ZK Teco K30 Device.";
MessageBox.Show("Connection Established.", title);
bool ret = axCZKEM1.ReadAllGLogData(1);
if (ret)
{
int a = 0;
int b = 0;
int c = 0;
int d = 0;
int ee = 0;
int f = 0;
int g = 0;
int h = 0;
int i = 0;
int j = 0;
int k = 0;
int l = 0;
int m = 0;
int n = 0;
int o = 0;
while (axCZKEM1.GetAllGLogData(1, ref a, ref b, ref c, ref k, ref l, ref d,
ref m, ref ee, ref f, ref g))
{
count++;
}