Most of you will want to save your work to P drive. However, you cannot compile programs on the P drive, therefore you must configure the project to build the project on the C drive. This how to will tell you how to do this, using the classic "Hello World" program as an example.
First we must open a new project (
File > New > Project), and call it HelloWorld.
Visual C++ > Win32 > Win 32 Console Application, and enter in the name for the project,
HelloWorld in this case. Check that the location is:
P:\Visual Studio 2005\Projects
PLEASE COMPLETE THESE NEXT TWO STEPS BEFORE BUILDING THE SOLUTION!!
Next we must setup the build directories in the C drive. Open up the project properties in
Project > HelloWorld Properties...
Configuration Properties > General . We need to edit the
Output Directory and the
Intermediate Directory. Click on the box next to
Output Directory and enter
Next click on the box next to
Intermediate Directory and enter
Since my username is MBBXDPJ2, when this program compiles the executable files will be stored at
Now write your code (if you haven't already done so) and we can start debugging. Select
Debug > Start Debugging...
Select yes when asked to build...
We should see terminal pop up with the famous "Hello World".
Making a new class
Including NAG dll
Optimising your programs