Well, I'm trying to output the ascii table, and most of it is fine....it'll print up to 127 Fine, but then it goes awire after that....anyone know why?
Code:
case 256: {
RECT a;
int x = (ww - 220) / 2;
int y = 20;
a.left = x;
a.top = y;
a.right = x + 50;
a.bottom = y + 15;
pDC->DrawText("Index",&a,DT_SINGLELINE|DT_CENTER);
a.left = x+65;
a.right=x+135;
pDC->DrawText("Character",&a,DT_SINGLELINE|DT_CENTER);
a.left = x+150;
a.right = x+220;
pDC->DrawText("Frequency",&a,DT_SINGLELINE|DT_CENTER);
y+=20;
for (int i = 0; i < 256; i++)
{
sprintf(b, "%d", i);
pDC -> TextOut (x + 25, y, b);
sprintf(b, "%c", i);
pDC -> TextOut (x + 100, y, b);
sprintf(b, "%d", m_FreqAscii[i]);
pDC -> TextOut (x + 180, y, b);
y+=20;
}
break;
}