Problem With sprintf and LPCTSTR?
Actually, I'm not sure what my problem is. I'm trying to change the text of a Resource Dialog Box field to a number. My code compiles okay, but when it runs this segment of code always causes the program to crash. (It is run 60 times) The Error it gives me when the program crashes says "Stack Around The Variable 'message' Has Been Corrupted" Help, please....
Code:
char message[2];
sprintf(message, "%d", currentSecondsCount);
SetDlgItemText(hWndNew, IDC_TIMERTEXT, (LPCTSTR)message);