Calculate the length of a specified fingerprint template.
Fingerprint template in string form
Length of the fingerprint template described by dwEnrollDat
Return True if it is successful, or return False.
GetFPTempLength
/// <summary> /// Calculate the length of a specified fingerprint template. /// </summary> /// <param name="dwEnrollData">Fingerprint template in string form</param> /// <param name="IP"> Ip of device </param> /// <param name="Port"> Port of Device </param> private void GetFPTempLengthStr(string dwEnrollData, string IP = "10.0.0.44", int Port = 4370) { //Create Standalone SDK class dynamicly. zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass(); axCZKEM1.Connect_Net(IP, Port); int idwErrorCode = 0; int Len = axCZKEM1.GetFPTempLengthStr(dwEnrollData); if (Len > 0) { MessageBox.Show("Length: " + Len.ToString(), "Success"); } else { axCZKEM1.GetLastError(ref idwErrorCode); MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error"); } }
''' <summary> ''' Calculate the length of a specified fingerprint template. ''' </summary> ''' <param name="dwEnrollData">Fingerprint template in string form</param> ''' <param name="IP"> Ip of device </param> ''' <param name="Port"> Port of Device </param> Private Sub GetFPTempLengthStr(ByVal dwEnrollData As String, Optional IP As String = "10.0.0.44", Optional Port As Integer = 4370) 'Create Standalone SDK class dynamicly. Dim axCZKEM1 As zkemkeeper.CZKEMClass = New zkemkeeper.CZKEMClass() axCZKEM1.Connect_Net(IP, Port) Dim idwErrorCode As Integer = 0 Dim Len As Integer = axCZKEM1.GetFPTempLengthStr(dwEnrollData) If Len > 0 Then MessageBox.Show("Length: " + Len.ToString(), "Success") Else axCZKEM1.GetLastError(idwErrorCode) MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error") End If End Sub