[解决办法] 比如说 '啊' 的内码是 0xaa01,而 'a'是 0x7a,'b'是0x1,那你的0xaa01就是'啊',0x7a01就是"ab",明白了? [解决办法] Return Values Returns the number of WCHAR values written to the buffer indicated by lpWideCharStr if successful. If the function succeeds and cchWideChar is 0, the return value is the required size for the buffer indicated by lpWideCharStr. '啊'是一个wchar,'ab'是两个wchar [解决办法] 填的值不一样,可能会导致半个汉字的问题 [解决办法] // ACSII字符集只到 0x7F // 超过0x7F的,系统都会认为是扩展字符集,两个字节表示一个字符。 // {0xAA,0x01,0x38,0}; 系统认为是 "0xaa, 0x01" 和 “0x38”两个字符 [解决办法] // 原始字符集不同。 // CP_ACP,是当前系统字符集,中文操作系统一般是GB2312 // 28591,437不知道是什么字符集,msdn上应该有说明 [解决办法]