NUMLINES macro and sysmetrics array in sysmets.h, Windows API
<pre><code>//score is a variable that is 
case WM_PAINT:
        hdc = BeginPaint(hWnd, &amp;ps);


        // Update the score here
        EndPaint(hWnd, &amp;ps);
        break;
</code></pre>

<p>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?</p>