MessageBox?

Started by
1 comment, last by Neen10do 21 years, 2 months ago
i want to be able to display a double type (double fps) in a message box, thusly: MessageBox(hwnd, fps, "Frames per Second", 1); but it would convert or type cast, is there anyway to get it to display non strings in a message box? i code therefore i am.
----------------------i code therefore i am.Aero DX - Coming to a bored Monitor near you!
Advertisement
U can use sprintf first then MessagBox().

Hope it helps!
"...and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces."----------Scott Meyers, "Effective C++"
Or for a more c++ approach you can concatenate std::strings (add them like you would add two ints) and use the cstr member for the parameter in MessageBox...

Brian
Brian J

This topic is closed to new replies.

Advertisement