Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

The TCHARdata type is a Win32 character string that can be used to describe ANSI, double-byte character set (DBCS), or Unicode strings. For ANSI and DBCS platforms, TCHARis defined as shown in the following Syntaxsection. For Unicode platforms, TCHARis defined as synonymous with the WCHARtype.

Syntax

typedef char	 TCHAR;  

Remarks

MAPI clients can use the TCHARdata type to represent a string of either the WCHARor the chartype. Be sure to define the symbolic constant UNICODE, and limit the platform where necessary. MAPI interprets the platform information and internally translates TCHARto the appropriate string. The MAPI property type PT_TSTRINGworks the same way as the TCHARdata type. When the platform supports Unicode, properties of type PT_TSTRINGare assigned the type PT_UNICODEat compile time. When the platform does not support Unicode, these properties are assigned the type PT_STRING8.

See Also

Reference

MAPI Data Types

Other Resources

Messaging