int_16 = (int) wcstol(str_value,NULL,16); int_10 = (int) wcstol(str_value,NULL,10); int_8 = (int) wcstol(str_value,NULL,8);
float f=atof(str);
转成16进制字符串
strValue.Formate(_T("%2x"),ch[i]);
转成10进制字符串
strValue.Formate(_T("%2d"),ch[i]);
转成8进制字符串
strValue.Formate(_T("%2o"),ch[i]);
浮点数转换成字符串
strValue.Formate(_T("%2.4f"),fvalue);