Thread: Windows Applications

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    18

    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

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Sure. You can create windows, dialogs, and such in a console program.

    gg

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    903
    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".

  4. #4
    Registered User
    Join Date
    Jan 2008
    Posts
    18
    So I can do it. Can anyone give me a refference for further reading? Thanks.

    renanmzmendes

  5. #5

  6. #6
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. LoadFromFile() causes Windows 98 to freeze?
    By MidnightlyCoder in forum Windows Programming
    Replies: 8
    Last Post: 03-17-2006, 02:23 PM
  2. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM
  3. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM
  4. How come this only works in Windows nt/2000?
    By Unregistered in forum Windows Programming
    Replies: 1
    Last Post: 08-30-2002, 06:54 PM