1. Win32 ShellExecute
- Posted by paulp at sugardog.com Oct 27, 2002
- 433 views
I am using the win32 ShellExecute function to run a win32 console program in a hidden window from a gui program the console program writes to a file when finished. I am currently using Euwingui with my own ShellExecute function because Euwingui does not have a hidden shell execute. This works correctly but the calling program does not know when the called program has finished. I am currently using a loop and the dir function which checks for the existance of the filename and a filesize greater than zero. I would like to have a better way to check if the called program has finished and exited. The loop method could possibly get stuck in an endless loop.
2. Re: Win32 ShellExecute
- Posted by pampeano at rocketmail.com Oct 27, 2002
- 441 views
Hi Paul, A nice way to do that would be to set up a timer and use this lib (http://www.rapideuphoria.com/window.zip) to check if the window is still open. Best Regards, Guillermo Bonvehi AKA: KNiXEUR --- paulp at sugardog.com wrote: > > I am using the win32 ShellExecute function to run a win32 console > program in a hidden window from a gui program the console program > writes > to a file when finished. I am currently using Euwingui > with my own ShellExecute function because Euwingui does not have a > hidden shell execute. > This works correctly but the calling program does not know when the > called program has finished. I am currently using a loop and the dir > function which checks for the existance of the filename and a > filesize > greater than zero. I would like to have a better way to check if the > called program has finished and exited. The loop method could > possibly > get stuck in an endless loop. > > > >
3. Re: Win32 ShellExecute
- Posted by tone.skoda at gmx.net Oct 28, 2002
- 433 views
Take a look at file process.ew included in IDE. ----- Original Message ----- From: <paulp at sugardog.com> To: "EUforum" <EUforum at topica.com> Subject: Win32 ShellExecute > > I am using the win32 ShellExecute function to run a win32 console > program in a hidden window from a gui program the console program writes > to a file when finished. I am currently using Euwingui > with my own ShellExecute function because Euwingui does not have a > hidden shell execute. > This works correctly but the calling program does not know when the > called program has finished. I am currently using a loop and the dir > function which checks for the existance of the filename and a filesize > greater than zero. I would like to have a better way to check if the > called program has finished and exited. The loop method could possibly > get stuck in an endless loop. > > > >