[so] [tema1] windows - problema GetEnvironmentVariable

Ionut Daneasa ionut.daneasa at gmail.com
Tue May 5 10:09:05 EEST 2009


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).
merci anyway


2009/5/5 Mihnea Muraru <mmihnea at gmail.com>

> Functia primeste numele variabilei, fara $:
> GetEnvironmentVariable("USER", ...);
>
> Mihnea
>
> 2009/5/4 Ionut Daneasa <ionut.daneasa at gmail.com>
>
>> salut,
>>
>> 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.
>>
>> Any ideas?
>>
>> merci,
>> Ionut
>>
>> _______________________________________________
>> so mailing list
>> so at cursuri.cs.pub.ro
>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>>
>>
>
> _______________________________________________
> so mailing list
> so at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/so
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090505/0af634f4/attachment.html>


More information about the so mailing list