CreateProcess and its status

This is a discussion on CreateProcess and its status within the Windows Programming forums, part of the Platform Specific Boards category; Is there a way to run a process using CreateProcess and then have the program that called it just kinda ...

  1. #1
    Registered User AtomRiot's Avatar
    Join Date
    Jan 2003
    Posts
    120

    CreateProcess and its status

    Is there a way to run a process using CreateProcess and then have the program that called it just kinda hang out until the process is finished? I am needing to use it in a windows program that calls a dos based program tat just does some file i/o and doesnt show anything and then ends, but i wanted to do it without the annoying dos box. i tried just letting create process go and then continue the program but the rest of the program finishes too fast. I have also tried using ShellExecute to run it but again i get the same problem. it will run with the system command but that pops up the annoying dos window.

    any thoughts would be greatly appreciated.
    All Your Base Are Still Belong to Someone!!!
    And you Remember that!!!

  2. #2
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,255
    WaitForSingleObject(hProcess, INFINITE);

  3. #3
    Registered User AtomRiot's Avatar
    Join Date
    Jan 2003
    Posts
    120
    EXCELLENT...Thank you very much!!!!!
    All Your Base Are Still Belong to Someone!!!
    And you Remember that!!!

Popular pages Recent additions subscribe to a feed

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