0

i have done some coding back in '99 in visual basic, and i remember there a command to excutse a message box to input data .

is there a similar function in C++ to excute a message box for input in a windows os ?

4
Contributors
6
Replies
7
Views
9 Years
Discussion Span
Last Post by John A
0

is there a similar function in C++ to excute a message box for input in a windows os ?
As strange as it might sound, it does exist: MessageBox().

Edited by Dani: Formatting fixed

0

As strange as it might sound, it does exist: MessageBox()
As far as I know there's no way to input data in a MessageBox().

@OP: Are you creating a MFC-app or a win32? You could just open a new form with an "edit control" on it?

Edited by happygeek: fixed formatting

0

is there a similar function in C++ to excute a message box for input in a windows os ?

As strange as it might sound, it does exist: MessageBox()

can you show an example snippet

Edited by mike_2000_17: Fixed formatting

0
MessageBox(NULL, "This is a test", "Daniweb rox", 0);

But it still doesn't take any input, or did I misunderstand your question?

Edited by Nick Evan: n/a

0

I'm sorry, I missed the 'input' part of the question. Follow Nick's original advice.

Edited by Nick Evan: n/a

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.