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">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;">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>_______________________________________________<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>