can any body tell me, what is actually the difference between UCHAR and WCHAR. I am using VC++ 6.0.
任何人都可以告诉我,UCHAR和WCHAR之间究竟有什么区别。我使用的是VC ++ 6.0。
2 个解决方案
#1
UCHAR as rein stated.
UCHAR如缰绳所述。
WCHAR is NOT a unicode character. This is a common misunderstanding. It's a 16 bit unsigned character, period. However, it might be interpreted as a unicode character and it might not be. UTF16 is a multi byte encoding just like UTF8, and might require representation by several WCHAR characters.
WCHAR不是unicode角色。这是一个常见的误解。这是一个16位无符号字符,句号。但是,它可能被解释为unicode字符,可能不是。 UTF16是一种多字节编码,就像UTF8一样,可能需要多个WCHAR字符表示。
#2
A UCHAR is simply an unsigned char (8 bit)
UCHAR只是一个无符号字符(8位)
A WCHAR is a unicode character (16 bit)
WCHAR是一个unicode字符(16位)
see here for more info
请看这里了解更多信息
#1
UCHAR as rein stated.
UCHAR如缰绳所述。
WCHAR is NOT a unicode character. This is a common misunderstanding. It's a 16 bit unsigned character, period. However, it might be interpreted as a unicode character and it might not be. UTF16 is a multi byte encoding just like UTF8, and might require representation by several WCHAR characters.
WCHAR不是unicode角色。这是一个常见的误解。这是一个16位无符号字符,句号。但是,它可能被解释为unicode字符,可能不是。 UTF16是一种多字节编码,就像UTF8一样,可能需要多个WCHAR字符表示。
#2
A UCHAR is simply an unsigned char (8 bit)
UCHAR只是一个无符号字符(8位)
A WCHAR is a unicode character (16 bit)
WCHAR是一个unicode字符(16位)
see here for more info
请看这里了解更多信息