Am rezolvat de ce se intampla<br>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.<br><br><b><i>Alex Badea <vamposdecampos@gmail.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Octavian Purdila wrote:<br>> On Monday 06 November 2006 18:59, Cristi B wrote:<br>>> DWORD lpExitCode;<br>>> GetExitCodeProcess(pi.hProcess, &lpExitCode);<br>>> if (lpExitCode == EXIT_SUCCESS) cout<<"a terminat cu succes!"<<endl;><br>>> else cout<<"nu a terminat cu success!"<<endl;><br>>><br>>> Primesc numai "nu a terminat cu succes", oricum valorile lui lpExitCode sunt mari, gen: 3600, 1244200 etc.<br>>> Nu inteleg care este problema.<br>>><br><br>Ar trebui (in general) sa verifici daca functia s-a executat cu succes,<br>si
daca nu, ce eroare a dat. Cel mai probabil ca in cazul tau a dat<br>failure, si lpExitCode contine un cuvant aleator de pe stiva.<br><br>Also,<br>> Astepti/verifici ca procesul s-a terminat?<br>> <br>> tavi<br><br>_______________________________________________<br>so mailing list<br>so@cursuri.cs.pub.ro<br>http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so<br></endl;></endl;></blockquote><br><p> 
<hr size=1>Everyone is raving about <a href="http://us.rd.yahoo.com/evt=42297/*http://advision.webevents.yahoo.com/mailbeta">the all-new Yahoo! Mail.</a>