executed exe does not close

This is a discussion on executed exe does not close within the C++ Programming forums, part of the General Programming Boards category; hi, have a little problem, system and spawnl works fine but with specific programs (my problem is with hardcopy) the ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    4

    executed exe does not close

    hi,

    have a little problem,

    system and spawnl works fine but with specific programs (my problem is with hardcopy) the dos-box does not close.
    Is there any possibilty to do that ??

    if you dont know hardcopy its a little tool which enables you to make nice screenshots with the print key.

    thx for any help

    cya Dream

  2. #2
    zen
    zen is offline
    of Zen Hall zen's Avatar
    Join Date
    Aug 2001
    Posts
    1,007
    As you want to close a dos-box I presume you're using Windows. If you want more control over a process then you could start it with CreateProcess() and end it with TerminateProcess(). Both are declared in windows.h.
    zen

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    4
    hey thx that helped

    cya Dream

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unreachable code?
    By Leojeen in forum C Programming
    Replies: 15
    Last Post: 09-28-2008, 07:11 PM
  2. open() and close()
    By SoFarAway in forum C Programming
    Replies: 3
    Last Post: 04-08-2005, 01:16 PM
  3. Close another exe from another exe??
    By Tony in forum Windows Programming
    Replies: 1
    Last Post: 06-12-2002, 07:19 AM
  4. Ghost in the CD Drive
    By Natase in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 10-12-2001, 05:38 PM
  5. How to close an EXE
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 10-11-2001, 01:29 PM

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