DOC PREVIEW
CSUN COMP 106 - Using Microsoft Visual C++ .Net 2003

This preview shows page 1-2-3 out of 9 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 9 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

College of Engineering and Computer ScienceComputer Science DepartmentComputer Science 106 Computing in Engineering and ScienceSpring 2006 Class number: 11672 Instructor: Larry CarettoUsing Microsoft Visual C++ .Net 2003ObjectiveThese notes are designed to provide information about using the Microsoft Visual C++ .Net integrated development environment (IDE) that will be used in this course. These first part of these notes provide basic information to get you started using the IDE for simple programming. The remainder of these notes provides information that will allow you to solve future problems when you get mysterious errors while using the IDE.Computer accountsYou should be able to use the computers in the lab with the same user name and password that you use for access to other computers on campus. If you have not yet activated your campus user account or if you have not used it for over six months, you will have to reactivate your account. Download the instructions from the course web site from the link for “Accounts and Network Drives.”BackgroundStudents are assumed to be generally familiar with the typical operating system on a graphical user interface (GUI) such as Microsoft Windows. You should be able to log on and log off to computers, start programs, and close programs. You should be able to use various menu and editing commands to create, modify and save files. This includes copying information from one file and pasting it to another file. Although programming will be a new experience for most students, the act of entering a program into the computer is similar to the typing and editing of text in a word processing program.Using Microsoft Visual C++ .Net 2003Microsoft Visual C++ .Net 2003 is used by professional developers who work on complex projects. This has an advantage for you in that you may encounter this compiler (or another version of it) in a future job. However, it has a disadvantage: it is much more powerful that required for this course. Seemingly simple omissions can lead to confusing errors.Except for the last assignment, you will almost always have one C++ file for your program. You want to use this file to write a program, compile it and execute it. In complex applications, programmers may be working on several related projects, each of which may have several files. To accommodate this Visual C++ provides “Solutions”, which can handle multiple projects, and projects which can use multiple files. In almost all your programming you will not be concerned about the difference between the “solution” and the “project”. However, you will have to be awareof the notion of the project and the C++ file that you are using for that project. These are two separate entities and you have to define each one before you can proceed. The way to do this is discussed in detail below.Jacaranda (Engineering 3333 Mail Code Phone: 818.677.6448E-mail: [email protected] 8348 Fax: 818.677.7062You will get the fastest execution if you define your files on the hard drive (c:\temp) of the computer you are using. However, such files may be erased between laboratory sessions as partof periodic clean-ups of hard drives. In addition, you may not be able to use the same computer in all laboratory sessions. You have to save your files to the network drive or a portable drive (floppy or USB) before leaving the lab. You can access your files on the network drive from any other computer in the College, but you cannot access them from your home computer; use a floppy if you want to work at home.Do not use floppy drives for compiling and executing your program. Your floppy drive may not have enough room to hold all the files associated with a project and it will give very slow compilation and execution. The detailed instructions below assume that you will use the local hard drive on the computer you are using to define your project and save your files during the lab session. However, such files may be deleted periodically as part of normal computer maintenance. You may want to use the network drive, because this saves your projects and files so that they can be accessed from any computer in the College. However, the network drive can give slow execution times at times of high network traffic.1The computers in the laboratory use the Windows XP operating system. There may be some slight differences between this system and the version of Windows with which you are familiar. However, these differences are not significant in the operation of Visual C++.Getting startedTo get started, use your account number to log on to the computer. (Press control-alt-delete to get the logon screen.) Once you are logged on, follow the steps below to use Visual C++ .Net 2003.1. After you click on the Start button in the lower left hand corner, you will get another menu from which you have to select All programs. This will give you the usual Windows program menu, from which you select Microsoft Visual Studio .Net 2003, which is about halfway down the left-hand column.2 This will give you a submenu from which you again select Microsoft Visual Studio .Net 2003.2. After you select this program, there will be a few seconds for the program to load. You will then see a window with three frames. The main frame, on the left side of the screen, may have one or more tabs at the top (just below the toolbar).3. Select New from the File menu; then select Project from the next menu. This will open the New Project dialog box in which you will do the following.a. Look at the Project Types: menu on the top left. If the Visual C++ Projects folder has a plus (+) sign on its left, click on this plus sign to reveal the subfolders under this folder. If the subfolders are already shown (in which case the folder will have a minus sign to its left), proceed to step b.b. Select Win32 from the subfolders under the Visual C++ Projects folder in the Project Types: menu. c. Select Win32 Console Project from the Templates: menu on the top right.d. Check the button in the lower left-hand corner of the dialog box. If it says More click the button to reveal a third text box, called New Solution Name: and a line of text stating where your project will be stored. If the button already says More, go on to the next step.e. Enter c:\temp in the Location: text box (the middle of the three text boxes at the bottom of the menu.)Error: Reference source not found1 See the section at the end of these


View Full Document

CSUN COMP 106 - Using Microsoft Visual C++ .Net 2003

Download Using Microsoft Visual C++ .Net 2003
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Using Microsoft Visual C++ .Net 2003 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Using Microsoft Visual C++ .Net 2003 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?