Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting Environment Varibles

Status
Not open for further replies.

Panthaur

IS-IT--Management
Jul 26, 2002
78
US
I have a console app written in Visual C++ 6.0 and I am wondering what code I would use to get environment variables from the computer? The app runs on all OSes from Win95 and up to XP.

Can anyone post me simple code to get the environment variable information?

Thanks,
Panthaur
 
getenv() can find an environment variable.
GetEnvironmentStrings() will return them all.
GetEnvironmentVariable() ... guess what ;-)

/JOlesen
 
Kewl! This should be the answer to my problems. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top