Using Microsoft Visual C++ Developer Studio

Similar documents
3 IDE (Integrated Development Environment)

Microsoft Visual Studio 2010 Instructions For C Programs

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

Appendix K Introduction to Microsoft Visual C++ 6.0

Visual Studio 2008 Express Editions

Programming with the Dev C++ IDE

DEPLOYING A VISUAL BASIC.NET APPLICATION

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

For Introduction to Java Programming, 5E By Y. Daniel Liang

Code::Blocks Student Manual

Deitel Dive-Into Series: Dive Into Microsoft Visual C++ 6

Code::Block manual. for CS101x course. Department of Computer Science and Engineering Indian Institute of Technology - Bombay Mumbai

Microsoft Word 2011: Create a Table of Contents

Using Microsoft Visual Studio API Reference

How to test and debug an ASP.NET application

Q N X S O F T W A R E D E V E L O P M E N T P L A T F O R M v Steps to Developing a QNX Program Quickstart Guide

Using the Query Analyzer

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

Creating a Simple Visual C++ Program

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

Enhancing the SAS Enhanced Editor with Toolbar Customizations Lynn Mullins, PPD, Cincinnati, Ohio

Module One: Getting Started Opening Outlook Setting Up Outlook for the First Time Understanding the Interface...

Compiler Setup and DirectX/OpenGL Setup

10 STEPS TO YOUR FIRST QNX PROGRAM. QUICKSTART GUIDE Second Edition

Web Ambassador Training on the CMS

Outlook . User Guide IS TRAINING CENTER. 833 Chestnut St, Suite 600. Philadelphia, PA

Using Example Projects, Code and Scripts to Jump-Start Customers With Code Composer Studio 2.0

Lab 2-2: Exploring Threads

Using Microsoft SQL Server A Brief Help Sheet for CMPT 354

Table Of Contents. iii

Building and Using Web Services With JDeveloper 11g

Integrated Virtual Debugger for Visual Studio Developer s Guide VMware Workstation 8.0

MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros.

Lab: Data Backup and Recovery in Windows XP

Microsoft Office Access 2007 Basics

TAMUS Terminal Server Setup BPP SQL/Alva

Infor ERP BaanIV / Baan 5.0 / LN 6.1. User's Guide for Worktop 2.4


+27O.557+! RM Auditor Additions - Web Monitor. Contents

BusinessObjects Enterprise XI Release 2

Eliminate Memory Errors and Improve Program Stability

Lab - Data Backup and Recovery in Windows XP

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

Virtual Communities Operations Manual

SimbaEngine SDK 9.4. Build a C++ ODBC Driver for SQL-Based Data Sources in 5 Days. Last Revised: October Simba Technologies Inc.

SelectSurvey.NET Developers Manual

Creating tables of contents and figures in Word 2013

Hamline University Administrative Computing Page 1

Optimal Internet Explorer v6.0 Settings User Guide

ElectricCommander. Technical Notes MS Visual Studio Add-in Integration version version 3.5 or higher. October 2010

Microsoft Word 2010 Prepared by Computing Services at the Eastman School of Music July 2010

Microsoft Access 2010 Part 1: Introduction to Access

Desktop, Web and Mobile Testing Tutorials

Hands-On Lab. Web Development in Visual Studio Lab version: Last updated: 12/10/2010. Page 1

Appointment Scheduler

PureEdge Viewer Training Guide

Appendix M: Introduction to Microsoft Visual C Express Edition

GOOGLE DOCS APPLICATION WORK WITH GOOGLE DOCUMENTS

MICROSOFT EXCEL 2011 MANAGE WORKBOOKS

RIT Message Center Compose and Send Messages

Application. 1.1 About This Tutorial Tutorial Requirements Provided Files

Table of Contents. 1. Content Approval...1 EVALUATION COPY

Outlook . Step 1: Open and Configure Outlook

Advanced Event Viewer Manual

Outlook 2010 Essentials

Qvidian Playbooks & Salesforce Setup Guide. Fall Release 2013

Hypercosm. Studio.

IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules

Avaya Network Configuration Manager User Guide

GE Fanuc Automation CIMPLICITY

Passport Installation. Windows 8 + Internet Explorer 10

How to install and use the File Sharing Outlook Plugin

Table of Contents. 1. Overview Materials Required System Requirements User Mode Installation Instructions..

Outlook Operating Instructions. Internal Desktop Access

Basics. a. Click the arrow to the right of the Options button, and then click Bcc.

The Reprographics Online E-Copy Process is used to submit print jobs to the RUSD Reprographics department.

Getting Started - The Control Panel

What is OneDrive for Business at University of Greenwich? Accessing OneDrive from Office 365

Lotus Notes Client Version 8.5 Reference Guide

Composite.Community.Newsletter - User Guide

Microsoft Visual Basic 6.0 Desktop: Controls

Visual COBOL ASP.NET Shopping Cart Demonstration

Developing In Eclipse, with ADT

How to create pop-up menus

Rational Quality Manager. Quick Start Tutorial

Quick Start Tutorial. Using the TASKING* Software Development Tools with the Intel 8x930 Family Evaluation Board

InfoView User s Guide. BusinessObjects Enterprise XI Release 2

System Administration Training Guide. S100 Installation and Site Management

How to Edit an . Here are some of the things you can do to customize your

Load testing with. WAPT Cloud. Quick Start Guide

vtcommander Installing and Starting vtcommander

Printing Bar Code and RFID Labels from Oracle

Chapter 1: Getting Started

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

WinCC. Configuration Manual. Manual Volume 3

Olathe District Schools 1 of 11 GroupWise 7

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

TIPS & TRICKS JOHN STEVENSON

Transcription:

Using Microsoft Visual C++ Developer Studio Microsoft Visual C++ Developer Studio IDE See notes & example programs from CS-360 URLs: http://www.cs.binghamton.edu/~reckert/360/1_f01_fin.pdf http://www.cs.binghamton.edu/~reckert/360/360notes.html http://www.cs.binghamton.edu/~reckert/360/360pgms.html Using Microsoft Visual C++ Developer Studio Self-contained environment for Windows program development: creating compiling linking testing/debugging IDE that accompanies Visual C++ Visual Studio Components The Editors C or C++ source program text editor cut/paste color cues, indentation, generates text files Resource Editor icons, bitmaps, cursors, menus, dialog boxes, etc. graphical, WYSIWYG, Integrated generates resource script (.rc) files integrated with text editor The Compilers C/C++ Compiler translates source programs to machine language detects and reports errors generates object (.obj) files for linker Resource Compiler Reads.rc file Generates binary resource (.res) file for linker The Linker reads compiler.obj/.res files accesses C/C++/Windows libraries generates executable (.exe or.dll) 1

The Debugger powerful source code debugger integrated with all parts of Dev Studio Features breakpoints tracing through/over functions variable watch windows much more The Wizards AppWizard Windows code generator for MFC apps automatically creates working program skeletons ClassWizard facilitates easy extension of AppWizardgenerated classes used to tailor AppWizard-generated MFC skeletons Online Help Can be accessed by: InfoViewer book/chapter Topic (keyword search-->relevant topics/articles) Help/Index from Menu F1 help (help on item under mouse cursor) The Web: MSDN (Microsoft Developer Network) InfoViewer Online Help (Win32 API Programming) MSDN Library Visual Studio 6.0 Platform SDK Reference Win32 Functions by Category Win32 Simple Data Types InfoViewer Online Help (MFC Programming) MSDN Library Visual Studio 6.0 Visual C++ Documentation Reference Microsoft Found. Class Lib. & Templates Microsoft Foundation Class Library Class Library Reference Select Desired Class 2

MSDN Library (on Web) Go to: http://msdn.microsoft.com Search on desired topic Good URL for MFC: http://msdn.microsoft.com/library/default.asp?url=/library/enus/vcmfc98/html/_mfc_class _library_reference_introduction.asp Other Advanced Tools SPY++ PVIEW ActiveX utilities, a gallery of software components More Using Developer Studio 97 and Visual C++ 5.0/6.0 To prepare many kinds of applications Win32 Console Applications (DOS programs) Win32 API Apps Win32 MFC apps DLLs Lots of others Menu bar Several tool bars Components Project Workspace Window (left) InfoView, FileView, ClassView, ResourceView Editor Window (right) Use Text Editor to Enter C/C++ code Use Resource Editors Output Window (bottom). System messages (errors) Toolbars Contain icons--instant routes to main menu functions Output, Workspace, Standard, Build, Edit, InfoViewer, Resource, etc. May not be visible If not, right click on any visible toolbar Brings up following popup window Can activate a toolbar by clicking on its check box 3

Projects and Workspaces Project collection of interrelated source files compiled/linked to generate a Windows executable project information stored in.dsp text file Project Workspace contains all information relating to a project can have multi-project workspaces combinations of projects in one application workspace information stored in.dsw text files Important Dev Studio Generated Files.dsp Project file.c or.cpp C/C++ source.h C/C++ header.dsw Workspace file.rc Resource script.res Compiled resource.ico Icon.bmp Bitmap image.exe Executable program.dll Dynamic Link Library (if used).obj Machine code translations Temporary Dev Studio generated files Many are huge and can (should) be removed!.ilk Incremental link file.pch Precompiled header.pdb Precompiled debugging info.idb Incremental debug info.ncb Supports viewing classes.aps Supports viewing resources.bsc Browser information file.clw Supports ClassWizard.opt Workspace configuration.plg Build log file Windows Program Configurations Debug appends debugging info produces more and larger files Release no debugging info optimized for size & efficiency Setting the Configuration Click "Build" on Main Menu Choose "Select Active Configuration Choose configuration ( Debug or Release ) Default is Debug 4

Create a Win32 App w/ Dev Studio Startup click Start on Task Bar Programs Microsoft Visual Studio Microsoft Visual C++ Creating Project File New from menu Projects Tab (if not chosen) Win32 Application Name the project (e.g. winapp1) OK Win32 Application, Step 1 of 1 Window Select An Empty Project Click Finish New Project Information Window Click OK Inserting source files into project: Open new C++ file, type or copy/paste the code into the program File New Files tab C++ Source Make sure Add to Project is checked Enter a file name (e.g., winapp1) Type or paste in the resulting Edit window To see/modify a file added to project: click FileView tab in Workspace Window click on file name in FileView window Building Project: Build Build winapp1 from menu Shortcut key: F7 Project will be compiled/linked Messages will appear in Output Window Running Program: Build Execute winapp1 Shortcut key: Ctrl-F5, or click exclamation point Cleanup: Copy workspace, project, source, header, resource files to disk Copy.exe from project's Debug directory Best: Delete all temporary files & copy entire workspace (project directory) to floppy Delete project directory from hard drive Exiting Developer Studio: File Exit from menu 5