Platform SDK: International Features

TEXT

The TEXT macro identifies a string as Unicode when the UNICODE is defined during compilation. Otherwise, it identifies a string as an ANSI string.

TEXT(
  LPTSTR string  // ANSI or Unicode string
);

Parameters

string
Pointer to the string to be interpreted as either Unicode or ANSI.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Winnt.h; include Windows.h.

See Also

Unicode and Character Sets Overview, Unicode and Character Set Macros