Thread: Open popup when run

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    4

    Open popup when run

    Hey!
    How can i make so that when i run my program it opens the console window but also a extra window which has a text box? What i want to do is that when i type something in the text box and hit enter it comes out in the console windows. Is this possible, if so, how?

    thanks in advance!

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    Use a console window to create a textbox (in a dialog (Win32 or some other GUI toolkit, ie GTKMM)), then ye... kinda easy from there...

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    What compiler and operating system are you using? Why do you want to have a textbox like this? It sounds like the rest of the application is console-based, so why not have the entire program run in a console?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  4. #4
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    You can just use the script for a regular window script, but without compiling it as a Win32 project. You can even use std::cout and TextOut() with each other. However, you won't be able to get rid of the consol wnd without returning main().

  5. #5
    Registered User
    Join Date
    Apr 2007
    Posts
    4
    Quote Originally Posted by dwks View Post
    What compiler and operating system are you using? Why do you want to have a textbox like this? It sounds like the rest of the application is console-based, so why not have the entire program run in a console?
    I'm using dev-c++ and windows xp. The application doesnt have any greater purpose yet, just being curious how this can be done.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fstream lets you open a file for output twice (?!)
    By DonFiasco in forum C++ Programming
    Replies: 1
    Last Post: 06-09-2005, 07:41 PM
  2. Problems with open and save boxes
    By pinkcheese in forum Windows Programming
    Replies: 3
    Last Post: 05-21-2002, 06:03 PM
  3. how do u open a folder?
    By nicola_diaz in forum C++ Programming
    Replies: 3
    Last Post: 11-24-2001, 04:22 PM
  4. Ghost in the CD Drive
    By Natase in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM
  5. Open file dialogue
    By Mr Ed in forum Windows Programming
    Replies: 3
    Last Post: 09-19-2001, 06:54 AM