SyntaxFix
Write A Post
Hire A Developer
Questions
It's probably a bit of overkill, but boost::lexical_cast<int>( theString ) should to the job quite well.
boost::lexical_cast<int>( theString )