System.PWideChar

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

type PWideChar = ^Char;

C++

typedef WideChar*            PWideChar;        //

Properties

Type Visibility Source Unit Parent
pointer
typedef
public
System.pas
sysmac.h
System System

Description

PWideChar is a pointer to a null-terminated string of WideChar values, that is, Unicode characters.

PWideChar defines a pointer to a memory location that contains WideChar values (including the #0 character).

In Delphi, one can obtain a PWideChar value from a string or a WideString, allowing seamless integration with C or C++ applications that expect null-terminated Unicode strings.

Notes:

Warning: Do not cast non-character pointer types to PWideChar to do pointer arithmetic. Instead, use the PByte pointer type, which is declared with the {$POINTERMATH ON} compiler directive.

See Also