CString str;
..
..
double d = _tcstod(str, NULL);
double d = _tcstod(_t("314.025"), null);
double f = atof("314.025");
assert( d ==314.025 );
assert( f ==314.025 );
CString str;
..
..
double d = _tcstod(str, NULL);
double d = _tcstod(_t("314.025"), null);
double f = atof("314.025");
assert( d ==314.025 );
assert( f ==314.025 );
转载于:https://www.cnblogs.com/gigbit/archive/2013/02/20/2919007.html