char chSomeBuffer[500]; // Don't mind the size or whatever, it's just a sample sprintf_s(chSomeBuffer, 20, "%d", 50); AfxMessageBox(chSomeBuffer); // MessageBox displays some unreadable bullc**p (about 3 chars size).
AfxMessageBox("WEE"); //Works correctly.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)