[so] GetExitCodeProcess horror show
Cristi B
cristib84 at yahoo.com
Mon Nov 6 22:57:27 EET 2006
Am rezolvat de ce se intampla
dadeam CloseHandle pana sa ii verific GetExitCodeProcess, am dat reply dar cred ca mesajul a ajuns decat la domn prof. in loc sa ajunga pe grup :D.
Alex Badea <vamposdecampos at gmail.com> wrote: 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!"<
>> else cout<<"nu a terminat cu success!"<
>>
>> 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
_______________________________________________
so mailing list
so at cursuri.cs.pub.ro
http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
---------------------------------
Everyone is raving about the all-new Yahoo! Mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/so/attachments/20061106/18292daa/attachment.html
More information about the so
mailing list