小弟我到底错哪了
我到底哪里错了
Under DBCS, a given string can contain all single-byte ANSI characters, all double-byte characters, or a combination of the two. These possibilities require special care in parsing strings, including CString objects.
http://technet.microsoft.com/zh-cn/subscriptions/ey142t48(v=vs.71).aspx
如果这段英文是真实的,那么下面的英文就有问题吗?
SourceType/DestinationType
Description
A
ANSI character string.
W
Unicode character string.
T
Generic character string (equivalent to W when _UNICODE is defined, equivalent to A otherwise).
OLE
OLE character string (equivalent to W).
http://msdn.microsoft.com/en-us/library/87zae4a3.aspx
W2A 中的a是ansi ?
擦,如果真是ansi, 那么我们代码必然有问题。为什么这么说呢?
一个宽字节版本的字符串,包含了中英文, 一旦用w2a转换,
效果为:宽字节字符像ansicc(ansi )转换,我靠,中文转换为anicc ?这是啥子效果啊。
我希望这个a是指: mbcs , 而不是单纯的( ascii) !!!!
------解决思路----------------------
A指ANSI,而ANSI并不是一个字符集,而是代表当前系统的默认字符集,在简体中文Windows下就是GBK,繁体中文则是BIG5,以此类推。
Under DBCS, a given string can contain all single-byte ANSI characters, all double-byte characters, or a combination of the two. These possibilities require special care in parsing strings, including CString objects.
http://technet.microsoft.com/zh-cn/subscriptions/ey142t48(v=vs.71).aspx
如果这段英文是真实的,那么下面的英文就有问题吗?
SourceType/DestinationType
Description
A
ANSI character string.
W
Unicode character string.
T
Generic character string (equivalent to W when _UNICODE is defined, equivalent to A otherwise).
OLE
OLE character string (equivalent to W).
http://msdn.microsoft.com/en-us/library/87zae4a3.aspx
W2A 中的a是ansi ?
擦,如果真是ansi, 那么我们代码必然有问题。为什么这么说呢?
一个宽字节版本的字符串,包含了中英文, 一旦用w2a转换,
效果为:宽字节字符像ansicc(ansi )转换,我靠,中文转换为anicc ?这是啥子效果啊。
我希望这个a是指: mbcs , 而不是单纯的( ascii) !!!!
------解决思路----------------------
A指ANSI,而ANSI并不是一个字符集,而是代表当前系统的默认字符集,在简体中文Windows下就是GBK,繁体中文则是BIG5,以此类推。