现在我正在使用这段代码来连接我的设备和我的PC,使用c#.I want to connect my device with my system and generate a new signal with my device to pc in c#, and I want to store my data in my window form design and when time will come for finger print then I put my finger on my device and they catch my finger and show my finger scan in window fomr in picture box and then data will store in my database. I use SqlServer database.Thanks in Advance.
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++;
}