I am trying to convert treePtr->item.getInvest() which contains a string to an integer. Is this possible?
treePtr->item.getInvest()
if you have access to boost:
int number= boost::lexical_cast(treePtr->item.getInvest());