4 Visual Studio Projects A project in Visual Studio is a container for all of the files needed to compile, execute, and debug a program. A solution can consist of multiple related projects. Our solutions will only have a single project. So a solution and a project will be essentially equivalent in this course.
19 Program "hello.cpp" in Action Press "Enter" to end program and close window.
20 Running Without the IDE We can double click here to run the program independently of the IDE. Here is the exe file.
Running from the Desktop Drag the hello.exe icon to the desktop. Double click the icon to run the program from the desktop. 21
22 Running Without the IDE We can also run the program from the DOS command line. Copy the exe file into a convenient directory (e.g. C ) Open a command window cd to the directory Type the command: hello
24 Deploying the Program The file hello.exe contains everything that is needed to execute the program. To deploy the program to another Windows computer, just copy the file into a convenient folder. Users can run the program from the command line, or can double click the file in the folder. Or can put a shortcut to the file on the desktop.