CryptoSys API Library Manual

CNV_HexFilter

Removes non-hexadecimal characters from a string.

VBA/VB6 Syntax

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)

C/C++ Syntax

long __stdcall CNV_HexFilter(char *szOutput, const char *szInput, long nInStrLen);

Parameters

szOutput
[out] to receive filtered characters.
szInput
[in] to be filtered.
nInStrLen
[in] specifying the length of the input string.

Returns (VBA/C)

If successful, the return value is the number of characters in the filtered string; otherwise it returns a negative error code.

VBA Wrapper Syntax

Public Function cnvHexFilter(szHex As String) As String

.NET Equivalent

Cnv.HexFilter Method

Remarks

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.

Example

See Also

CNV_HexStrFromBytes CNV_BytesFromHexStr

[Contents] [Index]

[PREV: CNV_BytesFromHexStr...]   [Contents]   [Index]   
   [NEXT: CNV_HexStrFromBytes...]

Copyright © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.