Microsoft Visual Studio 2010 Instructions For C Programs



Similar documents
Introduction to the use of the environment of Microsoft Visual Studio 2008

Visual Studio 2008 Express Editions

Using Microsoft Visual Studio API Reference

Creating a Simple Visual C++ Program

Appendix K Introduction to Microsoft Visual C++ 6.0

Walkthrough: Creating and Using an ASP.NET Web Service in Visual Web Developer

Appendix M: Introduction to Microsoft Visual C Express Edition

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

Installing Basic PAYE Tools onto a networked computer

Word 2010: Mail Merge to with Attachments

Working with SQL Server Integration Services

Getting TechWizard Version 4 Started Using Excel 2007 or Higher

Eclipse installation, configuration and operation

Installation...2 Installation of Athena Visual Studio...2 Authorization...3 Authorization for Corporate License Users...3 Authorization for

DEPLOYING A VISUAL BASIC.NET APPLICATION

Export the address book from the Blackberry handheld to MS Outlook 2003, using the synchronize utility in Blackberry Desktop Manager.

How to Compile, Link, and Execute C or C++ Codes Using Microsoft Visual C++

Windows 7 Printer Driver Installation procedure

Rational Application Developer v7.0 (RAD7) trial version. Installation guide

How to install and use the File Sharing Outlook Plugin

Lab: Data Backup and Recovery in Windows XP

Lab 2 - CMPS 1043, Computer Science I Introduction to File Input/Output (I/O) Projects and Solutions (C++)

CDOT Linking Excel Documents to MicroStation

5.6.2 Optional Lab: Restore Points in Windows Vista

Place a Call on Hold 1) In Call Control Area, click to select call to hold. 2) Click Hold button.

Help File. Version February, MetaDigger for PC

MS Visual C++ Introduction. Quick Introduction. A1 Visual C++

Troubleshooting Guide

In this lab you will explore the Windows XP Firewall and configure some advanced settings.

Saving GroupWise as Text Files

Microsoft Outlook 2000 Configuration Creation of a SPAM Filter

Lab - Data Backup and Recovery in Windows XP

1.5 MONITOR. Schools Accountancy Team INTRODUCTION

USING SSL/TLS WITH TERMINAL EMULATION

ContentWatch Auto Deployment Tool

Lab - Configure a Windows XP Firewall

How to Configure Windows 8.1 to run ereports on IE11

BioWin Network Installation

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

Outlook Plugin. What is MangoApps for Outlook?

Generating Visual Studio Project Files

Filtering with Microsoft Outlook

Mapping ITS s File Server Folder to Mosaic Windows to Publish a Website

Archiving. Follow these steps to archive your

ACTIVE DIRECTORY DEPLOYMENT

PRODUCT WHITE PAPER LABEL ARCHIVE. Adding and Configuring Active Directory Users in LABEL ARCHIVE

Using an Automatic Back Up for Outlook 2003 and Outlook 2007 Personal Folders

Notepad++ The COMPSCI 101 Text Editor for Windows. What is a text editor? Install Python 3

Mail Merge Creating Mailing Labels 3/23/2011

INTERNAL USE ONLY (Set it to white if you do not need it)

7. Data Packager: Sharing and Merging Data

ITCS QUICK REFERENCE GUIDE: EXPRESSION WEB SITE

Instructions for Configuring a SAS Metadata Server for Use with JMP Clinical

WA2102 Web Application Programming with Java EE 6 - WebSphere RAD 8.5. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc.

Lab A: Deploying and Managing Software by Using Group Policy Answer Key

EventTracker: Support to Non English Systems

Junk Settings. Options

Technical Paper. Defining an ODBC Library in SAS 9.2 Management Console Using Microsoft Windows NT Authentication

Optimal Browser Settings for Internet Explorer Running on Microsoft Windows

Promap V4 ActiveX MSI File

Jolly Server Getting Started Guide

MICROSOFT EXCEL 2011 MANAGE WORKBOOKS

Visual C Tutorial

Developing, Deploying, and Debugging Applications on Windows Embedded Standard 7

Comodo MyDLP Software Version 2.0. Endpoint Installation Guide Guide Version Comodo Security Solutions 1255 Broad Street Clifton, NJ 07013

ecw Weekly Users Tip: My Settings: Template-Friendly Settings & My Favorites: Templates

MatrixSSL Getting Started

Chapter 1: Getting Started

Course 2277: Implementing, Managing, and Maintaining a Microsoft Windows Server 2003 Network Infrastructure: Network Services

Turn on or off the Out of Office Assistant

WA1791 Designing and Developing Secure Web Services. Classroom Setup Guide. Web Age Solutions Inc. Web Age Solutions Inc. 1

Comodo ONE Software Version 1.8

For details for obtaining this later version; see the Known issues & Limitations, section at the end of this document.

How to Enable the Audit of Active Directory Objects in Windows 2008 R2 Lepide Software

How To Use Syntheticys User Management On A Pc Or Mac Or Macbook Powerbook (For Mac) On A Computer Or Mac (For Pc Or Pc) On Your Computer Or Ipa (For Ipa) On An Pc Or Ipad

Motion Control Products Application note Exporting AC500 tags for use with Panel Builder

Configure SQL database mirroring

Using Group Policy to Remotely Install Steelhead Mobile Software

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

Troubleshooting Guide

How to Configure Windows 7 to run ereports on IE 11

System Manager Installation Guide

Team Foundation Server 2010, Visual Studio Ultimate 2010, Team Build 2010, & Lab Management Beta 2 Installation Guide

SystemTools Software Inc. White Paper Series Hyena Installation Requirements

BusinessObjects Enterprise XI Release 2

Uninstallation Guide Funding Information System (FIS)

FileBound: Internet Settings & Requirements

Configuring Thunderbird for Flinders Mail at home.

This tutorial provides detailed instructions to help you download and configure Internet Explorer 6.0 for use with Web Commerce application.

Document Management in the List View

How to use Wireframe in Visio

Use the below instructions to configure your wireless settings to connect to the secure wireless network using Microsoft Windows Vista/7.

Install the Production Treasury Root Certificate (Vista / Win 7)

Microsoft Access Database

Hands-On Lab. Building a Data-Driven Master/Detail Business Form using Visual Studio Lab version: Last updated: 12/10/2010.

etoken Enterprise For: SSL SSL with etoken

Using Microsoft Visual C++ Developer Studio

Creating a Java application using Perfect Developer and the Java Develo...

Transcription:

Microsoft Visual Studio 2010 Instructions For C Programs Creating a NEW C Project After you open Visual Studio 2010, 1. Select File > New > Project from the main menu. This will open the New Project dialog box. 2. Select the Visual C++ option from the Installed Templates panel on the left hand side of the New Project dialog box. 3. Select the Empty Project option from the middle panel of the New Project dialog box. Last Updated: 9/14/2011 Page 1

4. Enter the name of your NEW project, such as MyProject, in the Name textbox located at the bottom of the New Project dialog box. 5. Change the Location of where you would like to save your NEW project. Note that your Home Directory on the Business/CS Lab computers resides on drive Z: and your USB usually resides on drive E:. 6. Select the Create directory for solution check box. Last Updated: 9/14/2011 Page 2

7. Press the OK button to continue. At this point in time your NEW project should open up in Visual Studio and you should be able to see your project assets in the Solution Explorer on the left hand side of your Visual Studio window. 8. Right click on the Source Files folder in the Solution Explorer and select Add > New Item. The Add New Item dialog box should appear at this time. 9. Select the C File (.cpp) option from the middle panel of the Add New Item dialog box. Last Updated: 9/14/2011 Page 3

10. Enter the name of your NEW C file in the Name textbox located at the bottom of the Add New Item dialog box with a.c extension (ie., MyFile.c). Note that you should not have to change the Location of your file as it should automatically appear in the directory you specified in Step 5 of these instructions. 11. Press the Add button to continue. At this point in time your NEW C Source File should appear as a project asset under the Source Files folder in the Solution Explorer on the right hand side of your Visual Studio window. Your NEW C Source File should open under a NEW Tab on the left hand side of the Visual Studio window as shown below. You can now type your program into the Visual Studio 2010 editor. Last Updated: 9/14/2011 Page 4

Saving a C Project / Source File 1. Select the Tab that contains the Source Code you wish to save. 2. Select File > Save filename.c from the main menu. This will automatically save the source code in that is open in the active tab of your Visual Studio 2010 workspace. Compiling and Running a C Program 1. To compile and link your program, press F7 on your keyboard or select Build > Build Solution from the main menu. This will allow you to build an executable file which will be saved in your projects Debug directory. Notes About Saving Your Files If you want to save a copy of your source code in a new file, you will want to choose the Save filename.c As.. option from the File menu. If you have more than one file open that you need to save, you may use the Save All option from the File menu and this will update all of your open files. When saving your files in the Business/CS Computer Lab and Classrooms, make sure that you are saving your files to either your Home Directory (Z: drive) or your USB drive otherwise you may lose your documents. DON T FORGET TO BACK UP YOUR FILES! At the bottom of your screen you should see the results of the compilation process which look similar the results in the picture below which indicate that your program has been built successfully: Last Updated: 9/14/2011 Page 5

2. To Run or Execute your program, press CTRL-F5 on your keyboard or choose Debug > Start without Debugging from the main menu. A new window should open and this should contain the results of your programs execution. Proceed to the following page if you do not see this window on your computer. If an execution window does not appear or does not stay open, make the following changes in Visual Studio: a. Select the Project Name in your Solution Explorer. b. Select Project > Properties from the main menu. Last Updated: 9/14/2011 Page 6

c. Expand the Configuration Properties option in the left panel of the Property Pages Dialog box by clicking on the to the left of the Configuration Properties option. d. Under the Configuration Properties, expand the Linker option in the left panel of the Property Pages Dialog box by clicking on the to the left of the Linker option. e. Under the Linker option, select the System option in the left panel of the Property Pages Dialog box. f. In the right panel of the Property Pages Dialog box, change the SubSystem option by clicking on the on the far right and select Console (/SUBSYSTEM: CONSOLE) as is shown below: g. Select Apply and OK at the bottom of the Property Pages Dialog box for the changes to take place the next time you run your program. Last Updated: 9/14/2011 Page 7

Closing a C Project 1. Select File > Close Solution from the main menu. If your Project has not been saved recently, a Microsoft Visual Studio message box will be opened prompting you to confirm any changes you have made to your Project and/or Source Code files. 2. Press the Yes button to confirm saving changes to your Project. Upon confirmation, all of your open files should be closed and your Solution Explorer should be void of information. At this point you can either close Visual Studio OR open a NEW or existing C Project. Exiting Visual Studio 1. Select File > Exit from the main menu. At this point Visual Studio will close. Last Updated: 9/14/2011 Page 8

Opening an EXISTING C Project 1. Select File > Open > Project/Solution from the main menu. This will open the Open Project dialog box. 2. Using the Open Project dialog box, locate the Visual Studio Project you wish to open. Your existing projects should be located either on the Z: drive or your USB drive. Once you have located the Project, select it and Press the Open button at the bottom of the dialog box. 3. At this point your Project should be open in your Visual Studio Workspace. Last Updated: 9/14/2011 Page 9