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
------解决方案--------------------
byte bs[] = { 97, 98, 99, 100, 101, 102, 0x0 };
Memo1->Lines->Add(String("The string is: ") + (char *)bs);
------解决方案--------------------
unsigned char bs[] = { 97, 98, 99, 100, 101, 102, 0x0 };
Memo1->Lines->Add(String("The string is: ") + (char *)bs);
------解决方案--------------------
强制转一下就行了
unsigned char bs[] = { 97, 98, 99, 100, 101, 102, 0x0 };
unsigned和“*”之类的类型问题就像下面强制转一下
String((char *)bs);