Thread: Transferring control to other execs

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    15

    Transferring control to other execs

    Is there any way to transfer execution to another program from within yours? In DOS? Windows? I have a feeling I've seen a standard C library function that does this, but don't remeber it.
    Thanks.

  2. #2
    the Corvetter
    Join Date
    Sep 2001
    Posts
    1,584
    Do you mean the system() function? Look up the syntax for it, though. I'm not too familiar with it.
    1978 Silver Anniversary Corvette

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    26
    It isn't portable so you will have to check your compiler's documentation, but you can use spawn() or execl() to spawn a child process or just run another program then exit... it is a little lengthy to cover in a forum, so look it up in your docs...
    one fish two fish
    red fish blue fish

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. (Multiline) Edit Control Limit
    By P4R4N01D in forum Windows Programming
    Replies: 9
    Last Post: 05-17-2008, 11:56 AM
  2. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  3. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  4. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM