Cstring <=> char*:
Cstring=》char*
1.(LPCSTR)Cstring
2.Cstring.getbuffer()
char* =>Cstring
1.Cstring.format("%s",char*);
十六进制 =》十进制
Cstring s = “ff”;
int nDeci;
ccsanf(s,“%x”,&nDeci);
十进制 =》十六进制
int nDeci = 255;
Cstring sHex;
sHex.format(“%2x”,nDeci);
ASCII => 中文汉字
Cstring strFirst = “de”;
CString strSeconde = “e3”;
Cstring strDes;
int nFirst,nSecond;
char ch【3】;
sscanf(strFirst,"%x",&nFirst);
sscanf(strSecond,"%x",&nSecond);
ch[0] = nFirst;
ch[1] = nSecond;
ch[2] = '/0';
strDes.format("%s",ch);