//score is a variable that is
case WM_PAINT:
hdc = BeginPaint(hWnd, &ps);
// Update the score here
EndPaint(hWnd, &ps);
break;
I am creating a game using windows API and using a score variable to keep track of the score of the user. I want to update the score on the screen everytime the user gains more points. The only function I know that can print text is TextOut. However, it accepts a pointer to a string and its length. Is there a easier way to print variables or do I have to convert my integer to string?