Thread: Opening other programs from a program

  1. #1
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001

    Opening other programs from a program

    I am using MS VS 6 Professional, and I'm creating a dialog box using MFC. I have created a function that runs when onOk() is processed (clicking the ok button) and I'm going to have it do a few things, then close the program, but before it closes, i want it to open another .exe that I'm going to create shortly....how would i go about doing this?
    PHP and XML
    Let's talk about SAX

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Easiest way.....look up ShellExecute()

  3. #3
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    thank you very much, i've been cosulting my book for the right function but i came up empty, couldn't think of any good keywords, shellexecute never really came to mind as the name. i knew it had to be pretty common since it's done all the time, thanks again.
    PHP and XML
    Let's talk about SAX

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I need the code of few programs in c++.plzzzzz help...plzzz
    By NAVINKR20 in forum C++ Programming
    Replies: 1
    Last Post: 05-08-2009, 09:13 AM
  2. Opening Programs.
    By Unregistered in forum C++ Programming
    Replies: 13
    Last Post: 06-23-2002, 04:40 AM
  3. Replies: 2
    Last Post: 05-10-2002, 04:16 PM
  4. Opening a file from within a program
    By face_master in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2001, 11:06 AM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM