Are you wedded to clunky old CString? It's possible using standard strings:
Code:
std::ostringstream os;
os << i;
std::string s = os.str();