宽字符处理问题
下面的两个文本框的内容怎么会不一样啊!我感觉太奇怪了。请教各位大侠!
WideString test= "我是中国人";
wchar_t zwb[5] ;
StrCopy( zwb ,test.c_bstr()) ;
USHORT tests[5];
tests[0]='我';
tests[1]='是';
tests[2]='中';
tests[3]='国';
tests[4]='人';
/*
test[1]='我';
test[2]='是';
test[3]='中';
test[4]='国';
test[5]='人';
*/
for ( int i = 1 ;i<test.Length()+1;i++ )
{
Edit1->Text = Edit1->Text +"/" + IntToStr(test[i]) ;
}
// Edit2->Text = test;
Edit2->Text = IntToStr(tests[0])+"/"+IntToStr(tests[1])+"/"+IntToStr(tests[2])+"/"+IntToStr(tests[3])+"/"+IntToStr(tests[4])+"/";