apelam fara $, numai ca era o problema cu shellul cygwin sau ceva de genul pentru ca in momentul cand am uploadat-o a trecut testul respectiv (deci problema era doar la mine in masina virtuala).<div><div><br></div><div>merci anyway</div>
<div><br><br><div class="gmail_quote">2009/5/5 Mihnea Muraru <span dir="ltr"><<a href="mailto:mmihnea@gmail.com">mmihnea@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Functia primeste numele variabilei, fara $:<br>GetEnvironmentVariable("USER", ...);<br><br>Mihnea<br><br><div class="gmail_quote">2009/5/4 Ionut Daneasa <span dir="ltr"><<a href="mailto:ionut.daneasa@gmail.com" target="_blank">ionut.daneasa@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex"><div><div></div><div class="h5">salut,<br><br>nu-mi merge GetEnvironmentVariable in sensul ca nu-mi pune nimic in lpBuffer si in plus si valoarea returnata (lungimea stringului e 0). E chiar aiurea pentru ca de exemplu daca rulez in cygwin echo $USER imi returneaza Administrator, dar daca fac acelasi lucru in cu GetEnv... nu-mi aduce nimic.<br>
<br>Any ideas?<br><br>merci,<br><font color="#888888">Ionut<br>
</font><br></div></div>_______________________________________________<br>
so mailing list<div class="im"><br>
<a href="mailto:so@cursuri.cs.pub.ro" target="_blank">so@cursuri.cs.pub.ro</a><br>
</div><a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
so mailing list<br>
<a href="mailto:so@cursuri.cs.pub.ro">so@cursuri.cs.pub.ro</a><br>
<a href="http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so" target="_blank">http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so</a><br>
<br></blockquote></div><br></div></div>