CryptoSys PKI Toolkit Manual

CNV_Latin1FromUTF8

Converts a UTF-8 string into a Latin-1 string, if possible.

VB6/VBA Syntax

Public Declare Function CNV_Latin1FromUTF8 Lib "diCrPKI.dll" (ByVal strOutput As String, ByVal nOutChars As Long, ByVal strInput As String) As Long

nLen = CNV_Latin1FromUTF8(strOutput, nOutChars, strInput)

Parameters

strOutput
[out] String to receive the output.
nOutChars
[in] Long specifying the maximum number of characters to be received.
strInput
[in] String of UTF-8 characters to be converted.

C/C++ Syntax

long _stdcall CNV_Latin1FromUTF8(char *szOutput, long nOutChars, const char *szInput);

Returns (VB6/C)

Long: If successful, the return value is a positive number indicating the number of characters in the output string, or number of characters required if nOutChars is set to zero; otherwise it returns a negative error code.

.NET Equivalent

Not applicable in .NET.

Remarks

This function is deprecated. Use CNV_Latin1FromUTF8Bytes instead.

Example

See Also

[Contents] [Index]

[HOME]   [NEXT: CNV_Latin1FromUTF8Bytes...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.