Thread: Function becides system ()?

  1. #1
    Registered User
    Join Date
    Mar 2006
    Location
    USA::Colorado
    Posts
    155

    Function becides system ()?

    Hello,

    I'm trying to run a .exe by doing system("ProgramName.exe");.

    However, when I do this (from an MFC dialog) it brings up a console AND the program I wish to run.

    Is there a way to do runprogram("ProgramName.exe"); and not bring up a console?

    thanks,

    guitarist809
    ~guitarist809~

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    You mean like those methods listed in the FAQ?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Mar 2006
    Location
    USA::Colorado
    Posts
    155
    Thanks
    ~guitarist809~

  4. #4
    Registered User
    Join Date
    Nov 2002
    Posts
    319
    use ShellExecute or WinExec or CreateProcess

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. measuring system resources used by a function
    By Aran in forum C Programming
    Replies: 1
    Last Post: 03-13-2006, 05:35 PM
  5. Replies: 4
    Last Post: 06-13-2005, 09:03 AM