# Microsoft Visual Studio* Code Examples

The solution files in the package are for Microsoft Visual Studio* 2005. Later versions of Microsoft* Visual Studio can convert them. Each example has two solution files, one for the Microsoft compiler (*`_cl.sln`) and one for the Intel compiler (*`_icl.sln`).

To run one of the solution files in `examples\*\*\msvs\.`:

1. Start Microsoft Visual Studio*.

2. Open a solution file in the `msvs` directory.

3. In Microsoft Visual Studio*, press Ctrl-F5 to compile and run the example. Use Ctrl-F5, not Shift-F5, so that you can inspect the console window after the example finishes.

The Microsoft Visual Studio* solution files for the examples require that an environment variable specify where the library is installed. The installer sets this variable.

The makefiles for the examples require that `INCLUDE`, `LIB`, and `PATH` variables are set as indicated in the Windows* OS topic. You can set these variables in one of the following ways:

- During installation, check the Register environment variables box.
- Go to `<install_dir>\bin\` directory and run the batch file `tbbvars.bat`.

Parent topic: Windows* OS