Use a function like sprintf or snprintf to create the string you want to display, and then input that string to the MessageBox function. The sprintf function gives you the ability to embed an integer inside a string, by using the %d format specifier. It is similar to printf, the difference is printf outputs the string to standard output, while sprintf outputs it to a character buffer.
Reputation Points: 572
Solved Threads: 115
Mentally Challenged Mod.
Offline 1,559 posts
since Jun 2005