FPTempConvertNewStr

Definition

Usage

Convert a Biokey fingerprint template into an offline fingerprint template in string form. The

only difference between this function and FPTempConvertNew is the data format.

Parameter

Offline fingerprint template to be converted into

Converted Biokey fingerprint template

Size of the converted Biokey fingerprint template

Return Value

Return True if it is successful, or return False.

Related Function

FPTempConvertNew, FPTempConvert, FPTempConvertStr

 

Ejemplo

C#

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

VB

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