DW2Bin - Convert a 32 bit value (LONG or ULONG) to a string

Top 

Syntax

 

<>] )

 

Parameters

 

<t>

 

to Unicode.

 

<nAddChr0Count>

 

<ing. The default is 0.

 

 

Return value

 

The

Description

 

Ansi2Unicode() converts an ANSI text string to Unicode. Beware that an O/S function receiving a Unicode text string requires two trailing zero bytes to recognize the end of the string.

 

The API function used for conversion is MultiByteToWideChar().

 

Classification

 

Core

 

Category

 

Character Set Conversion Functions

 

Quick Info

 

Library: cckptcor.lib / cckptcor.dll

Header: StringTypes.ch

 

See also

 

Unicode2Ansi, ConvWTextIn

 

Example

 

 

* Convert all german umlauts to Unicode (source must be in ANSI)

unicodeString := Ansi2Unicode("äöüÄÖÜ")