Archived

This topic is now archived and is closed to further replies.

kolpo

How can I print Integers with TextOut?

Recommended Posts

score=50;
char buffer[16]; // Make it large enough to hold any number you want to print

sprintf(buffer, "%i", score);

TextOut(hDC, 50, 50, buffer, sizeof(buffer));

Hope that helps.

Dirk "Scarab" Gerrits

''If knowledge is power, than to be unknown is to be unconquerable.''
- Unknown Romulan Centurion

Share this post


Link to post
Share on other sites