Skip to content

Latest commit

 

History

History
71 lines (57 loc) · 2.51 KB

nf-winnt-text.md

File metadata and controls

71 lines (57 loc) · 2.51 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winnt.TEXT
TEXT macro (winnt.h)
Identifies a string as Unicode when UNICODE is defined by a preprocessor directive during compilation. Otherwise, the macro identifies a string as an ANSI string.
TEXT
TEXT macro [Internationalization for Windows Applications]
_win32_TEXT_Macro
intl.text
winnt/TEXT
intl\text.htm
Intl
427d365f-2277-460c-8120-3ccb6c6cea4f
12/05/2018
TEXT, TEXT macro [Internationalization for Windows Applications], _win32_TEXT_Macro, intl.text, winnt/TEXT
winnt.h
Windows.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Windows
19H1
TEXT
winnt/TEXT
c++
APIRef
kbSyntax
HeaderDef
Winnt.h
TEXT

TEXT macro

-description

Identifies a string as Unicode when UNICODE is defined by a preprocessor directive during compilation. Otherwise, the macro identifies a string as an ANSI string.

-parameters

-param quote

Pointer to the string to interpret as UTF-16 or ANSI.

-remarks

This macro interprets an ANSI string at runtime according to the current Windows ANSI code page. Literal ANSI strings that are not strictly ASCII are interpreted differently when processed with different Windows ANSI code pages. For example, "\0xC4" in code page 1252 (Latin-1) represents Upper Case A with Dieresis (Ä). However, in code page 1253 (Greek), the string represents Upper Case Delta (Δ). These different interpretations lead to development and maintenance issues. For example, a developer might correct a string when using a different system code page from the page used by the original developer; or a build computer might use a different code page. The different interpretations also pose runtime issues, for example, when the end user computer uses a different code page to interpret a string from that used by the build computer.

-see-also

Unicode and Character Set Macros

Unicode and Character Sets