[so] [tema1] windows - problema GetEnvironmentVariable

Mihnea Muraru mmihnea at gmail.com
Tue May 5 09:05:19 EEST 2009


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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so/attachments/20090505/875c575f/attachment.htm>


More information about the so mailing list