Defining Environment Variables

Hello all

I'm using Visual C++ 2010 Express on windows. I'm quite new to C++, and I'm writing a program using a third party library. In the documentation it says I should define an environment variable called VHS_ROOT which contains the path to where the library is. I know about paths and things, but I dont know how to define an environment variable, or really even what an environment variable is. Is it similar to a global variable? Would I define it in the cpp file? Or somewhere in the VC++ settings or the project properties?

Many thanks for your help
An environment variable is not a program's variable. It belongs to Windows (in your case).
So I don't think you have to do it from within your own program.

The command which you can run in Command Prompt is:
set VHS_ROOT=C:\path goes here\

Edit:
Or somewhere in the VC++ settings or the project properties?

Sorry missed that. Yes, I suppose.
Last edited on
Thanks! That's all I needed
Topic archived. No new replies allowed.