| 发表于:2007-03-20 17:00:053楼 得分:0 |
string asctohz(string s) { string hz= " "; for (int i=1;i <=s.length();i++) { byte c=s[i]; if (c> 32 && c <128) hz=hz+string((char)163)+string((char)(128+c)); else hz=hz+string((char)c); } return(hz); } void __fastcall tform1::button1click(tobject *sender) { showmessage(asctohz(edit1-> text)); } 可能可以解决你的问题 | | |
|