Function becides system ()?

This is a discussion on Function becides system ()? within the Windows Programming forums, part of the Platform Specific Boards category; Hello, I'm trying to run a .exe by doing system("ProgramName.exe");. However, when I do this (from an MFC dialog) it ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,751
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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, 04:06 PM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 03: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, 10:03 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21