You can also use
agk :: Print(temp.c_str())
With your integer number, you have a number overflow. Integer number range (32 bit) = -2,147,483,648 to 2,147,483,647. If you took an unsigned integer (unsigned int) instead of the integer (int), that would not help either (range 0 to 4,294,967,295). The solution is to rethink whether you need such huge numbers? Or take 64 bit integers.
The example should look like this.
int64_t iTemp = 2837458237485;
std::string szTemp;
szTemp.resize(20);
_i64toa(iTemp, &szTemp[0], 10);
agk::Print(szTemp.c_str());
Something like that
(not tested)
Share your knowledge. It\'s a way to achieve immortality.
(Tenzin Gyatso)