Using Visual C++
for a printer friendly version of the Visual C++ instructions
Creating a project in
1) Select "New" in the file menu:
2) Specify a Project name, and select "Win32 Console Application":
3) Specify "An empty project" and click on ok:
4) Click on "OK"
1) Select "New" from the file menu:
|| Hilight "C++ Source File" from the list on the left
|| Make sure "Add to project" is checked
|| Give the file a name (Make *sure* it ends with ".c")
3) You're done! The white space on the right hand side of the screen is
the space in which you should start coding. :)
- To compile(build) the project, press the F7 key. You
can also do this from the "Build" menu, or from a button on
the toolbar. Find out how you will do this.
Running the program(excuting
- If there are no compilation errors in the Build window at the bottom,
you can execute the program by pressing the Ctrl and F5
- You can also press the red exclamation button on the toolbar, or
by selecting Build -> Execute.
the Output Screen from Visual C++
- Run your program. You will
automatically be in the output window.
- When in the output window
(the black one), click once on the "MS-DOS" symbol in the upper
left-hand corner of the menu bar. You will get a pull-down menu.
- Under the sub-menu "Edit"
- The cursor will blink on
the upper left-hand corner of the window. "Click" and "drag" to select
the text you want to print.
- Hit the "enter" key (Enter).
- Start Wordpad.
(Start->Programs ->Accessories ->Wordpad)
- Inside Wordpad,
use the Paste command.
- Print from within Wordpad.
- Double click on "My Computer"
to see the top folder
- Double click on the folder
- You will get an empty
screen with a warning that modifying these files can lead to system
problems. You are given an option to show the files by clicking on "show
files". Do that to display the contents of the folder.
- Double click on the folder
- You will get another message
like in step 3. Click on "show files"
- Look for a file called
"conagent" and select it by clicking once (you will probably
have two, one with the MS-DOS icon, the other with a blue window icon,
they are really the same so you can use either one).
- Right-click (using the
right button on your mouse) on "conagent" and select the "Properties"
- Click on the "Screen"
- In the first part of the
panel, on the right-hand side, select the size to be 50 lines.
- In the middle section
of the panel, unselect "Restore settings on startup".
- Close the window. From
now on, every time you run a program from within Visual C++, you will
get a window with 50 lines.
if nothing else works, try:
10 steps towards make your MS-DOS window bigger:
1. Double click on "My Computer"
2. Double click on your Hard Drive, usually "C:"
3. Double click on the folder "Windows" (If you need to, click on "show files")
4. Double click on the folder "System"
5. Click on "show files"
6. Look for a file called "conagent.exe" and right click on it and
select the "Properties" option.
7. Click on the "Screen" tab.
8. On the right-hand side, where it says "Initial size," select the
size to be 50 lines.
9. Next, this is important: in the middle section of the panel,
UNSELECT "Restore settings on startup".
10. Close the window. You're done.
top || return
to course page
Last Modification: Jan 1 2003