Removes non-hexadecimal characters from a string.
Public Declare Function CNV_HexFilter Lib "diCryptoSys.dll"
(ByVal strOutput As String, ByVal strInput As String, ByVal nStrLen As Long) As Long
nRet = CNV_HexFilter(strOutput, strInput, nStrLen)
long __stdcall CNV_HexFilter(char *szOutput, const char *szInput, long nInStrLen);
If successful, the return value is the number of characters in the filtered string; otherwise it returns a negative error code.
Public Function cnvHexFilter
(szHex As String) As String
For the "raw" function, specify a zero nOutChars or a null string for szOutput to find the required length of the output string. C/C++ users must add one to this value when allocating memory.
CNV_HexStrFromBytes
CNV_BytesFromHexStr