S sweidong Unregistered / Unconfirmed GUEST, unregistred user! 2004-02-04 #1 delphi中用什么函数来取得汉字的ASCII码,以便用来对汉字进行加密,ASC(),和MID()为何不能使用,请指教!
A andy263 Unregistered / Unconfirmed GUEST, unregistred user! 2004-02-04 #3 IntToStr(Ord(s[1])) IntToStr(Ord(s[2]))
S savetime Unregistered / Unconfirmed GUEST, unregistred user! 2004-02-04 #4 这样行不行? const HanZi = '汉字'; var P: PChar; iAsc: Byte; begin P := HanZi; iAsc := Ord(P[0]); end;