Setting up Microsoft Visual C++ Solutions and Projects

The instructions below will describe the lab conventions for setting up solutions and projects in Visual C++. Please follow them closely.

All projects should stem from the "Empty Project" template. This template has the best settings already in place (No precompiled headers, none of the additional windows bells and whistles). Every project name should be entirely lowercase, to match file name conventions.

The default builds "Debug" and "Release" should be adapted for static libraries as applicable.

Debug settings that need to be set (under Configuration Properties for the project):

Set the project dependencies. Right click on the solution and select properties.

Under Common Properties -> Startup Project, make sure "Single startup project" is selected and make it the current project.

Under Common Properties -> Project Dependencies, go through every project and set up the "Depends on" relationships.
The test project needs to depend on every module with unit tests.

If there is a test suite associated with this project. . .

Right click the project and press Add->New Filter . . . Name it "Test Files".

Place all test header files, "makerunner.pl", and "makerunnermodule.pl" in a folder named "test" in your project's physical directory. If there are any additional resource files used in the tests, place them in a directory called "files" in the "test" folder.

Create a blank text file named "runner.cpp" in the directory.

Include all header files and runner.cpp in the "Test Files" filter in MSVC++.

Open the properties page for ONE of the header files. Set "All
Configurations" as the active Configuration.