博客园  :: 首页  :: 联系 :: 管理

char DataType

Posted on 2006-12-14 01:06  sunrack  阅读(185)  评论(0)    收藏  举报

Table 2-8. Character Fundamental Type
C++/CLI Alias Class Library Value
wchar_t System::Char A single 16-bit Unicode character

The .NET Framework class library System::Char is a 16-bit Unicode character, which has a
C++/CLI alias of __wchar_t (or wchar_t, if the Zc:wchar_t flag is set on the compiler).

Traditional C++ programmers must be wary of the C++/CLI alias char, as it is not the same as the
.NET Framework’s class library Char. A char is an 8-bit ASCII character, whereas a Char is a 16-bit Unicode
character.