Downloading and Writing Programs with
Visual Studio
Download: You have several options for obtaining different versions of Visual Studio. The version we will be using this course is Visual Studio 2005 Professional Edition. This is the version of Visual Studio which is loaded on the lab computers in ENS 242 and ENS 243. You may load this version on you dorm computers by checking out the installation CDs from the Cedarville Library.
Writing Programs:
Within Visual Studio each C++ program that you write needs to be within a Visual C++ project. Furthermore, all projects need to be part of a solution. You may have any number of projects within the solution.
To Create a Visual C++ Project in Visual Studio 2005, do the following:
Open Visual Studio 2005 by double-clicking on the icon or selecting it from the start menu.
Select File ... New ... Project (or CTRL+SHIFT+N).
In the property sheet that appears, make sure the "Visual C++" project type is expanded and select the "Win32" project type and then the "Win32 Console Application" as the template.
Still in the property sheet chose a name for your project, a location on the network to store the project (typically somewhere on the H: drive) and check the box which asks to "create directory for solution" and enter a solution name. Then click OK.
In the wizard that appears, click next.
On the "Application Settings" make sure "console application" and "empty project" are selected. Then click finish.
Write the program as you normally would.
To run your program, select Debug ... Start without debugging (or type Crtl-F5)