-
Windows Applications
Hi,
I've got a Win32 Console Application, built in VS 2005 Express Edition. When running my application, I would like, in a particular time, for a window to appear, where I could type some data and retrieve it for my application's use. Is it possible to do that?
renanmzmendes
-
Sure. You can create windows, dialogs, and such in a console program.
gg
-
What do you mean by "in a particular time" ? You could have an edit box and a button created by CreateWindow() with the EDIT and BUTTON class name respectively (if my memory is correct).
Edit: Ahah, didn't notice the "Win32 *console* application".
-
So I can do it. Can anyone give me a refference for further reading? Thanks.
renanmzmendes
-
-
The differences between console and Windows applications are actually pretty small - the main difference is the "main" or "WinMain" and some of the libraries in the link.
So to make a console app open a dialog box essentially just means you have to do the same thing as in a Window app, and then respond to the relevant messages until the dialog box is closed.
If you don't know how to do dialog boxes, then I suggest you try creating a normal Window (non-console) app first, and learn how it works, then apply your knowledge to the console app.
--
Mats