CString strFrom;
double x;
strFrom = ......;
x = _tstof(strFrom);
或者:
x = _wtof(strFrom);
在使用atof()时,会产生类型转换错误!
strFrom.Format(_T("%f"),x);
CString strFrom;
double x;
strFrom = ......;
x = _tstof(strFrom);
或者:
x = _wtof(strFrom);
在使用atof()时,会产生类型转换错误!
strFrom.Format(_T("%f"),x);