Thread: Running a console application

  1. #1
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318

    Running a console application

    I would like to run a console application from my GUI application. But I don't want the console window to appear. And I want the console program to send a message to my GUI application when ready.

  2. #2
    Unregistered User
    Join Date
    Sep 2005
    Location
    Antarctica
    Posts
    341
    use CreateProcess, there is a flag to hide the window, there are also flags to pass STDIN and STDOUT handles to the process so you can write to it and read from it.

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    That CREATE_NO_WINDOW flag is not available for windows 98.

  4. #4
    Unregistered User
    Join Date
    Sep 2005
    Location
    Antarctica
    Posts
    341
    Try using the show window property set to SW_HIDE, make sure you use that flag that tells it to use this value, STARTF_SHOWWINDOW or something like that.

  5. #5
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    STARTF_SHOWWINDOW?? no such thing

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. simple snmp console application.
    By csteinsv in forum C++ Programming
    Replies: 0
    Last Post: 06-01-2009, 05:03 PM
  2. 'No symbols Loaded'. Simple console application
    By flipflop82 in forum C++ Programming
    Replies: 3
    Last Post: 10-20-2004, 09:10 AM
  3. error running application
    By somesh in forum Tech Board
    Replies: 4
    Last Post: 06-25-2003, 09:50 PM
  4. Run vbscript from C++ console application
    By dp_goose in forum C++ Programming
    Replies: 3
    Last Post: 05-15-2003, 09:00 AM
  5. Running an application
    By Hankyaku in forum C++ Programming
    Replies: 10
    Last Post: 05-06-2003, 01:23 AM