摘要: 1 字符串>>string =unicodeString 字母的处理要定义AnsiString了>>PChar =PWidechar>>str='普通汉字' str[1]='普',而不是str[1]+str[2]了>>4字节的一个汉字,length=2,双字节的一个汉字,length=1>>stri... 阅读全文
posted @ 2015-09-02 15:22 tc310 阅读(1112) 评论(0) 推荐(0)
摘要: 在delphi2010中,因为unicode的原因,FillChar使用方法已经和老版delphi大不相同了。如果想用某一个字符(或汉字)填充内存 buf: array[0..1023] of Char; 就不能这样使用 FillChar(buf, size, 65); {填充字母 A}这样使用是错... 阅读全文
posted @ 2015-09-02 14:53 tc310 阅读(509) 评论(0) 推荐(0)