System.AnsiStringT.WideChar

From RAD Studio API Documentation
Jump to: navigation, search

C++

wchar_t* WideChar(wchar_t* dest, int destSize) const {

Properties

Type Visibility Source Unit Parent
function public dstring.h System AnsiStringT

Description

Converts the AnsiStringT to a wide-character array.

WideChar converts the AnsiStringT to an array of wide characters, and returns the resulting wide-character array.

The return value is held by dest, a buffer the caller allocated for this purpose. Use the WideCharBufSize method to determine the size needed to hold the entire string value.

The size of dest, in bytes, is held by destSize. WideChar returns a pointer to the wide-character array that is written to dest.

See Also