|
-
April 24th, 2004, 04:51 PM
#1
simple refresher question
he he, i feel aweful, i forgot how to do a simple 2 or 4 digit command after using vb
any way, i have my messagebox, and i want it to display some text, then a variable, then some more text.
ex:
Code:
MessageBox("text ??Var1\r\ntext ??var2",.......)
something similar to that, wheere the ?? is possible where the stuff goes
thx
I would not say that the subject is boring, nor that I get enough sleep as the reason for me dosing in class, rather, I would say that I am too comfortable, causing me to loose interest in the class subject and focus on becoming more comfortable...
-
April 24th, 2004, 08:51 PM
#2
Use a std::ostringstream to build the string before passing it to the messagebox:
Code:
#include <sstream>
...
std::ostringstream message;
message << "This is a text with a number: " << 100 << ", and some more text...";
MessageBox(message.str().c_str(), ...whatever parameters are needed...);
-
April 24th, 2004, 08:58 PM
#3
cool, i got it, at first i forgot the ; at the end, and it didnt work, but i remembered
thanks
I would not say that the subject is boring, nor that I get enough sleep as the reason for me dosing in class, rather, I would say that I am too comfortable, causing me to loose interest in the class subject and focus on becoming more comfortable...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|