Int 转CString :
int n=1;
CString str;
str.Format("%d",n);
CString 转 Int::
CString str="1";
int n=atoi(str.GetBuffer(0));
char * 转 CString:
char sz[128];
CString str;
str.Format("%s",sz);
CString 转 char *:
CString str;
int nLength=str.GetLength();
char * sz=new char[nLength];
sz=str.GetBuffer(0);
Float 转 CString:
float f=0.0;
CString str;
str.Format("%f",f);
CString 转 Float:
CString str="0.0";
float f=atof(str.GetBuffer(0));