FPTempConvertStr

Definition

Usage

Convert an offline fingerprint template into a Biokey fingerprint template. The only difference

between this function and FPTempConvertStr is the data format.

Parameter

Offline fingerprint template to be converted

Converted Biokey fingerprint template

CSize of the converted Biokey fingerprint template

Return Value

Return True if it is successful, or return False.

Related Function

FPTempConvert, FPTempConvertNew, FPTempConvertNewStr

 

Ejemplo

C#

        /// <summary>
        /// Convert an offline fingerprint template into a Biokey fingerprint template.The only difference 
        /// between this function and FPTempConvertStr is the data format. 
        /// </summary>
        /// <param name="TmpData1">Offline fingerprint template to be converted </param>
        /// <param name="TmpData2">Converted Biokey fingerprint template</param>
        /// <param name="Size">Size of the converted Biokey fingerprint template</param>
        /// <param name="IP"> Ip of device </param>
        /// <param name="Port"> Port of Device </param>
        private void FPTempConvertStr(string TmpData1, string TmpData2, int Size, 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;
        if (axCZKEM1.FPTempConvertStr(TmpData1, TmpData2, ref Size))
            {
                MessageBox.Show("FPTempConvertStr!", "Success");
            }
        else
            {
                axCZKEM1.GetLastError(ref idwErrorCode);
                MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error");
            }
        }

VB

        ''' <summary>
        ''' Convert an offline fingerprint template into a Biokey fingerprint template.The only difference 
        ''' between this function and FPTempConvertStr is the data format. 
        ''' </summary>
        ''' <param name="TmpData1">Offline fingerprint template to be converted </param>
        ''' <param name="TmpData2">Converted Biokey fingerprint template</param>
        ''' <param name="Size">Size of the converted Biokey fingerprint template</param>
        ''' <param name="IP"> Ip of device </param>
        ''' <param name="Port"> Port of Device </param>
        Private Sub FPTempConvertStr(ByVal TmpData1 As String, ByVal TmpData2 As String, ByVal Size As Integer, 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
        If axCZKEM1.FPTempConvertStr(TmpData1, TmpData2, Size) Then
            MessageBox.Show("FPTempConvertStr!", "Success")
        Else
            axCZKEM1.GetLastError(idwErrorCode)
            MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error")
        End If
        End Sub