Not sure to understand the differences between _execl and CreateProcess.
It seems to be about the arguments of the functions that look more 
flexible with CreateProcess to achieve a better control.

Am I right ?

Nicle a écrit :
>
>
> CreateProcess Function:
>
> http://msdn.microsoft.com/en-us/library/ms682425.aspx 
> <http://msdn.microsoft.com/en-us/library/ms682425.aspx>
>
> 2009/4/10 Nicle <yni...@gmail.com <mailto:ynicle%40gmail.com>>
>
> > Under windows, maybe you can replace the _execl() with CreateProcess() .
> >
> >
> > 2009/4/7 Stephane Lesoinne <lesoi...@montefiore.ulg.ac.be 
> <mailto:lesoinne%40montefiore.ulg.ac.be>>
> >
> > 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.
> >>
> >>
> >
> >
>
> [Non-text portions of this message have been removed]
>
> 

Reply via email to