[so] GetExitCodeProcess horror show

Octavian Purdila tavi at cs.pub.ro
Mon Nov 6 19:10:07 EET 2006


On Monday 06 November 2006 18:59, Cristi B wrote:
>     DWORD lpExitCode;
>     GetExitCodeProcess(pi.hProcess, &lpExitCode);
>     if (lpExitCode == EXIT_SUCCESS) cout<<"a terminat cu succes!"<<endl;
>     else cout<<"nu a terminat cu success!"<<endl;
> 
> Primesc numai "nu a terminat cu succes", oricum valorile lui lpExitCode sunt mari, gen: 3600, 1244200 etc.
> Nu inteleg care este problema.
> 

Astepti/verifici ca procesul s-a terminat?

tavi


More information about the so mailing list