I would like to get all the elements of a string array and I just get the last one followed by a "zero" element.
void DrawFonts(int num, int x, int y)
{
Char Buffer [20];
CString ss;
num = 15; //or whatever more than 2 elements
itoa( num, Buffer, 10 );
int MyLen = strlen(Buffer);
myrect.top = 0;
myrect.bottom = 17;
for(i=0; i< MyLen; i++){
int A = (int) atoi (Buffer);
++(*Buffer);
myrect.left = A * 15;
myrect.right = (A+1) * 15;
g_pDisplay->Blt( x+i *15, y, g_pFontSurface, &myrect );
}
}
Will someone help me to get the full element list?
Thank you all in advance.
Ioannis Goulatis