TEXT

The TEXT macro identifies a string as Unicode when the UNICODE is defined during compilation or as an ANSI string otherwise.

TEXT(
  LPTSTR string  // pointer to an ANSI or Unicode string
);
 

Parameters

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

Remarks

The TEXT macro is defined as follows:

#ifdef UNICODE
    #define TEXT(quote) L##quote
#else
    #define TEXT(quote) quote
#endif 

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Requires version 1.0 or later.
  Header: Declared in winnt.h.

See Also

Unicode and Character Sets Overview, Unicode and Character Set Macros