EDN Admin
Well-known member
HI all,
Im developing a C# thumprint authentication application converting from C++ coding with .dll file and thumbprint card reader.
I unable to store and retrieve the data to the smart card.
C++<span style="font-family:arial
Able store and retrieve data from smart card
// Verify Password.
ret = BAPI_VerifyPassword(V_Name, V_Address, V_ID_NUM,"1234567");
if(ret ==1)
{
<span style="color:rgb(255,0,0) cout<<"Genuine User"<<endl;<br style="color:rgb(255,0,0) <span style="color:rgb(255,0,0) cout<<V_Name<<endl;<br style="color:rgb(255,0,0) <span style="color:rgb(255,0,0) cout<<V_Address<<endl;<br style="color:rgb(255,0,0) <span style="color:rgb(255,0,0) cout<<V_ID_NUM<<endl;
}
else
{
cout<<"PW: Imposter!"<<endl;
}
////////////////////////////////////////////////////////////////////////
C#
Unable store and retrieve data from smart card
<span style="color:rgb(255,102,0) int[] EngineVer = new int[1];<br style="color:rgb(255,102,0) <span style="color:rgb(255,102,0) char[] V_Name = new char[30];<br style="color:rgb(255,102,0) <span style="color:rgb(255,102,0) char[] V_Address = new char[120];<br style="color:rgb(255,102,0) <span style="color:rgb(255,102,0) char[] V_ID_NUM = new char[20];
status = BAPI_ImageCapture();
if (status == 0)
{
MessageBox.Show("Poor Image Captured");
}
if (status == 1)
{
<span style="font-weight:bold;color:rgb(255,0,0) status = BAPI_Verification(0, V_Name, V_Address, V_ID_NUM);
if (status == 1)
{
MessageBox.Show("Genuine User");
this.Hide();
frmStaffId StaffId = new frmStaffId("*");
StaffId.Show();
}
else
{
MessageBox.Show("Improster");
}
}
}
View the full article
Im developing a C# thumprint authentication application converting from C++ coding with .dll file and thumbprint card reader.
I unable to store and retrieve the data to the smart card.
C++<span style="font-family:arial
Able store and retrieve data from smart card
// Verify Password.
ret = BAPI_VerifyPassword(V_Name, V_Address, V_ID_NUM,"1234567");
if(ret ==1)
{
<span style="color:rgb(255,0,0) cout<<"Genuine User"<<endl;<br style="color:rgb(255,0,0) <span style="color:rgb(255,0,0) cout<<V_Name<<endl;<br style="color:rgb(255,0,0) <span style="color:rgb(255,0,0) cout<<V_Address<<endl;<br style="color:rgb(255,0,0) <span style="color:rgb(255,0,0) cout<<V_ID_NUM<<endl;
}
else
{
cout<<"PW: Imposter!"<<endl;
}
////////////////////////////////////////////////////////////////////////
C#
Unable store and retrieve data from smart card
<span style="color:rgb(255,102,0) int[] EngineVer = new int[1];<br style="color:rgb(255,102,0) <span style="color:rgb(255,102,0) char[] V_Name = new char[30];<br style="color:rgb(255,102,0) <span style="color:rgb(255,102,0) char[] V_Address = new char[120];<br style="color:rgb(255,102,0) <span style="color:rgb(255,102,0) char[] V_ID_NUM = new char[20];
status = BAPI_ImageCapture();
if (status == 0)
{
MessageBox.Show("Poor Image Captured");
}
if (status == 1)
{
<span style="font-weight:bold;color:rgb(255,0,0) status = BAPI_Verification(0, V_Name, V_Address, V_ID_NUM);
if (status == 1)
{
MessageBox.Show("Genuine User");
this.Hide();
frmStaffId StaffId = new frmStaffId("*");
StaffId.Show();
}
else
{
MessageBox.Show("Improster");
}
}
}
View the full article