Menu

#8 Compiling ocicpplib on Windows

open
nobody
None
5
2010-02-05
2010-02-05
Anonymous
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.