Z
zhiqunluodelphi
Unregistered / Unconfirmed
GUEST, unregistred user!
请问如何将汉字的ASICC码转换成宽字符?如下面程序:
StrMemo :='';
For i := 1 To (MessLen div 2) do
begin
If ReadBuf[2 * i - 2] > 127 Then
kk := 256 * (ReadBuf[2 * i - 2] - 256) + ReadBuf[2 * i-1]
Else
kk := 256 * ReadBuf[2 * i - 2] + ReadBuf[2 * i-1];
StrMemo := StrMemo + Chr(kk);
end;
如何将KK(双字节)的值转换成宽字符,谢谢!
StrMemo :='';
For i := 1 To (MessLen div 2) do
begin
If ReadBuf[2 * i - 2] > 127 Then
kk := 256 * (ReadBuf[2 * i - 2] - 256) + ReadBuf[2 * i-1]
Else
kk := 256 * ReadBuf[2 * i - 2] + ReadBuf[2 * i-1];
StrMemo := StrMemo + Chr(kk);
end;
如何将KK(双字节)的值转换成宽字符,谢谢!