to divide the number.

then u must use an array of strings to connect it to,

u can write a recursive function for it.

i think this will help you a little bit to get the IDEA but I

didn't try it on any enviroment.

ValArray,ValStr are supposed to be

//========================

static int round = 0;

void SetToText(int number , CString& StringOut)

{

if(number>10)

{

round++;

SetToText(int , StringOut);

StringOut += ValArray[number%(round*10)

StringOut += ValStr[round--];

number/=10;

return;

}

if(number)

StringOut += ValArray[number%10];

StringOut += "\n" ;

return ;

}

//========================