RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiString::WideChar Method

Converts the System::AnsiString::AnsiString to a wide-character array.

Pascal
function WideChar(var dest: wchar_t; destSize: Integer): wchar_t*;
C++
__fastcall wchar_t* WideChar(wchar_t* dest, int destSize) const;

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

dest is a buffer the caller allocates to hold the return value. Use the System::AnsiString::WideCharBufSize method to determine the size needed to hold the entire string value. 

destSize is the size, in bytes, of dest. 

System::AnsiString::WideChar returns a pointer to the wide-character array that is written to dest. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!