Hi,
I'm trying to execute a loop on an external program file.exe in C program.
I'm using _execl(...) command to achieve this on Windows XP with MSVC++
2008.
I've succeeded in running one instance of the process and now I would
like to execute the program file.exe many times but starting a new
"file.exe" process should wait the previous instance termination.
If I only do
int i;
for(i=0;i<3;i++){
_execl("file.exe","test",NULL);
}
this doesn't work because, the three execution of file.exe are started
too fast.
So, how can I pause the execution of the calling process till the the
resume of the current file.exe process ?
Best regards.
Stéphane Lesoinne.