[so] GetExitCodeProcess horror show
Alex Badea
vamposdecampos at gmail.com
Mon Nov 6 22:50:16 EET 2006
Octavian Purdila wrote:
> 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.
>>
Ar trebui (in general) sa verifici daca functia s-a executat cu succes,
si daca nu, ce eroare a dat. Cel mai probabil ca in cazul tau a dat
failure, si lpExitCode contine un cuvant aleator de pe stiva.
Also,
> Astepti/verifici ca procesul s-a terminat?
>
> tavi
More information about the so
mailing list