C# 与BCB之间的转换!
C#中的下列语句怎么变成可以使用的BCB语句 求解
byte[] bs = {97, 98, 99, 100, 101, 102};
string ss = System.Text.Encoding.ASCII.GetString(bs);
this.textBox1.AppendText("The string is: " + ss + "\n");
运行结果为:The string is: abcdef
Come from http://www.dzwebs.net Article Url??http://www.dzwebs.net/3121.html
[解决办法]
本帖最后由 ccrun 于 2012-11-05 09:45:53 编辑
byte bs[] = { 97, 98, 99, 100, 101, 102, 0x0 };
Memo1->Lines->Add(String("The string is: ") + (char *)bs);