Compiling ocicpplib on Windows
Brought to you by:
rupper
In file OraNumber.cpp :
void OCICPP::OraNumber::getDouble(double &val,int row) {
if(data) {
val=atof(data+(size+1)*row);
return;
} else throw OraError("OCICPPLIB: Cannot getDouble: Not fetched yet",OCICPPERROR);
}
Function atof do not use regional settings when converting from string to float. For example, if numer is 3.14 it converts to 3.14 and if 3,14 it converts it to 3 (when decimal divider is comma). So, replace the function to strtod