

















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















With the help of
Create a blank solution. Solution is a text file inside a folder that helps Visual Studio manage projects..
Create a project. Project is an XML file that keeps track of files and properties. Add project to blank solution.
Wizard creates some files that we don’t need for Console Applications. I recommend you start with an empty project.
Now, we will add two files from a handouts folder to our project folder using browser. Just right click on file and select: “Save Target As:” Here, we download FileInfo.h, FileInfo.cpp
Target of download is our project folder Target is the Project folder to add the files: FileInfo.h, FileInfo.cpp
Now, we define the Preprocessor string needed to compile the fileInfo module’s main function. You get the Property Pages dialog by right-clicking on your project – here DemoFiles – and select properties.
O.K. It works! We could walk through this code with the debugger to help us see how it functions.
Now, we add an executive module that will use FileInfo to do some task. It’s time to add a new file, our Executive module, DemoFiles.cpp
To start, we’re just going to copy part of the FileInfo test stub into the executive. That will demonstrate the executive calling a server.
We added some necessary include files, defined a Preprocessor switch for this main, and added a definition in our project settings so it will be compiled.
Now, we’re single- stepping through our code with the debugger. Each press of F10 steps one line of source code, executing as it goes. Local Call Stack variables
If we press F11 we step into any function on the current line, even if it is in another file. If we press F11 we will step into the function setPath, even though it is defined in another file. Watches – any variable in scope. Note that we are selecting specific elements of the argv array.