To explain a little
>char b =NULL;
...
>(_itoa(biggest,&b,10)
_itoa tries to convert the digits of the given value argument ('biggest') to a null-terminated character string. This means at least 2 bytes. You only pass as argument the address of one single byte and the second one is not alocated.
Main Topics
Browse All Topics





by: AlexFMPosted on 2004-07-21 at 07:47:20ID: 11603226
Replace
t,b,10),MB _OK,0); // without &
char b =NULL;
with
char b[10];
...
AfxMessageBox(_itoa(bigges
Instead of MessageBox you can use TRACE or OutputDebugString:
CString s;
s.Format("%d\n", biggest);
TRACE(s);