Opening other programs from a program

This is a discussion on Opening other programs from a program within the Windows Programming forums, part of the Platform Specific Boards category; I am using MS VS 6 Professional, and I'm creating a dialog box using MFC. I have created a function ...

  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,789
    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, 10:13 AM
  2. Opening Programs.
    By Unregistered in forum C++ Programming
    Replies: 13
    Last Post: 06-23-2002, 05:40 AM
  3. Replies: 2
    Last Post: 05-10-2002, 05:16 PM
  4. Opening a file from within a program
    By face_master in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2001, 12:06 PM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 11:04 PM

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