Hi,
The atof function is assuming that the decimal separator is '.' and not ','.
So you could do one of the following:
1> get the cell values directly from worksheet cells using code such as:
double dval = wks.Cell(1,0);
which takes into account the regional setting and will place the correct value in the variable
OR
2> remove all '.' from the string and then replace ',' with '.' to convert to English decimal format and then use atof, such as:
wks.GetCell(1,0, str);
str.Remove('.');
str.Replace(',','.');
double dval2 = atof(str);
Easwar
OriginLab