C
Cactus
How to convert unsigned char* to CString:
I wrote some function:
u_char_[0] =55;
u_char_[1] =66;
u_char_[2] =77;
.........=ii......
Convert_to_CS(u_char_);
****
void Convert_to_CS (unsigned char* u_char){
CString str0,str;
str0.Format("%d",u_char[0]);
AfxMessageBox ("First:" +str0);
CString str(u_char);
AfxMessageBox ("Second:" +str);
}
***
Output:
First: A
Second: // so nothing, why ??
Why working only first convetion ? I want convert whole array of uchar,
how to do it ?
I wrote some function:
u_char_[0] =55;
u_char_[1] =66;
u_char_[2] =77;
.........=ii......
Convert_to_CS(u_char_);
****
void Convert_to_CS (unsigned char* u_char){
CString str0,str;
str0.Format("%d",u_char[0]);
AfxMessageBox ("First:" +str0);
CString str(u_char);
AfxMessageBox ("Second:" +str);
}
***
Output:
First: A
Second: // so nothing, why ??
Why working only first convetion ? I want convert whole array of uchar,
how to do it ?