Problem: Take Two Numbers, Add Them Together And Display The Results. Now To Build The Flowchart… We Probably Need One Like This… Let’s Add The Routines…

Slides:



Advertisements
Similar presentations
Microsoft Expression Web-Illustrated Unit J: Creating Forms.
Advertisements

1 After completing this lesson, you will be able to: Create a new presentation using a design template. Enter text in the Slide pane. Create a new slide.
MS-Word XP Lesson 1.
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 7 Using Macros and Visual Basic for Applications (VBA) with Excel.
Access Lesson 2 Creating a Database
Automating Tasks With Macros
Access Tutorial 1 Creating a Database
Fundamentals of Programming in Visual Basic 3.1 Visual basic Objects Visual Basic programs display a Windows style screen (called a form) with boxes into.
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
Introduction to C++ - How C++ Evolved Most popular languages currently: COBOL, Fortran, C, C++, Java (script) C was developed in 1970s at AT&T (Richie)
Introduction to Graphical User Interfaces. Objectives * Students should understand what a procedural program is. * Students should understand what an.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 22 Macros.
Chapter 1 Databases and Database Objects: An Introduction
TABLE OF CONTENTS LEARNING POWERPOINT
Intro to MFC. Open VS and create new project 1)Open MS Visual Studio 2008 Professional (It must be the Professional Edition, the Express Edition will.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Program Design and Coding
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
Classic Controls Trần Anh Tuấn A. Week 1 How to create a MFC project in VS 6.0 How to create a MFC project in VS 6.0 Introduction to Classic Controls.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Project Deployment IT [211 CAP] How to convert your project to a full application.
® Microsoft Office 2013 Access Creating a Database.
How to get started with Excel VBA. We need to enable programming in Excel  the “Developer menu”
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Access Forms and Queries. Entering Data in Your Table  You can add data to your table in Datasheet view, by typing in the columns and rows.  This.
Introduction to Web Services. Examples Using a Web Service Creating a new Web Service.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Creating an Application System Using Macros, Wizards, and the Switchboard.
Chapter 2 part #1 C++ Program Structure
Fall 2003Sylnovie Merchant, Ph.D. ACCESS Tutorial Note: The purpose of this tutorial is to provide an introduction to some of the functions of ACCESS in.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
CS 281 – Fall 2015 Lab 4 Parametric Query and Forms in MS Access.
Chapter 8 Dialog Boxes and Property Sheet. 2 Two kinds of dialog boxes Dialog boxes –Modal dialog When appear, it takes all ownership of input. It disables.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Microsoft ® Outlook 2000 Integrating Outlook with Office Applications.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
When the program is first started a wizard will start to setup your Lemming App. Enter your company name and owner in the fields designated “Company Name”
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Slide 1 Controls v Control naming convention –Label: lblName –Command Button: cmdName –Text Box: txtName.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
When the program is first started a wizard will start to setup your Lemming App. Enter your company name and owner in the fields designated “Company Name”
Visual Basic A Quick Tutorial VB Review for ACS 367.
Chapter 5 Introduction To Form Builder. Lesson C Objectives  Use sequences to automatically generate primary key values in a form  Create lists of values.
Chapter 7 Controls. List box control 3 List Box Control(1/8) Listbox control: –Display lists of text strings called items –Optionally sort the items.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
CS 281 – Fall 2010 Lab 4 Parametric Query and Forms in MS Access.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Creating ActiveX Controls at runtime If you need to create an ActiveX Control at runtime without a resource template entry, follow the programming steps.
Excel Tutorial 8 Developing an Excel Application
Tutorial 1 Creating a Database
Visual Basic .NET BASICS
Creating Data Base & Sql Data Source
Access Tutorial 1 Creating a Database
Access Creating a Database
MFC Dialog Application
Access Creating a Database
Access Tutorial 1 Creating a Database
Microsoft Official Academic Course, Access 2016
Creating Data Base & Sql Data Source
Visual Basic Menu Editor
Access Tutorial 1 Creating a Database
Access Tutorial 1 Creating a Database
Chapter 2 part #1 C++ Program Structure
Presentation transcript:

Problem: Take Two Numbers, Add Them Together And Display The Results. Now To Build The Flowchart… We Probably Need One Like This… Let’s Add The Routines… Start Get Number 1 Get Number 2 Number 3 = Number 1 + Number 2 Display Number 3 Stop What Now??? Let’s Program Using It. Which Language Do You Want To Use? C++, Visual C++ Or Visual Basic? Let’s Start With C++

Let’s Put The Chart Up For A Reference. Now We Begin With A Comment Line. // Program Name: Test.cpp Then We Include A Reference To The iostream File. #include Now We Setup Our Main Routine. void main( ) { Then Define Our Integers. int test1; int test2; int test3; Get Input From User And Store It In Integers. cout << “Enter number 1:”; cin >> test1; cout << “\n”; cout << “Enter number 2:”; cin >> test2; We Add Them Together. test3 = test1 + test2; And Print The Results. cout << “The total is: \n”; cout << test3; cout << “\n”; } Compile And Run The Program.

Program It In…

Select MFC AppWizard(exe) First Open Visual C++ Type In A File Name

Select Dialog Based And Press Next

Press Next, We Are Going To Use The Defaults On This Screen.

Press Next, Again We Will Use The Defaults.

Now We Can Press Finished. The Wizard Will Build Our Program.

After The Wizard Is Finished, We Get This. We Can’t Use It Like It Is, We Need To Make Changes. Delete This First. Then Move Our Buttons Down To About Here. Add Three Edit Boxes About Here. You Get The Edit Boxes From Your Tool Box

Right Click On The Buttons To Change Properties. Change ID To IDADD and Caption To ADD. This Is A Reference Name To The Control In Your Program.. This Is The Displayed Caption. Change The Cancel Button To Exit.

It Should Look Like This Now. Now We Program The Code. Select The Exit Button. Right Click On The Exit Button And Select ClassWizard

Select IDCANCEL BNCLICKED ADD Function When This Box Shows, Press OK Then Press Edit Code

A Section Of Code Will Appear. Add OnOK(); Type It Exactly As Shown. C++ Is Case Sensitive. Now Our Exit Button Works…

To Define Our Variables, Select ClassWizard Again. Press The Second Tab. Select Edit1. Now Press Add Variables

Type In m_Test1 Change This To Int. We Are Using Integers. Press OK Do The Same Thing On Edit2 And Edit3, But Rename The Variables To m_Test2 And m_Test3 To Match The Edit Boxes.

Select ClassWizard Again. Select IDADD BN_CLICKED Press Edit Code We Are Going To Put In Our ADD Routine.

Type In Exactly As Shown… UpdateData(TRUE); m_Test3 = m_Test1 + m_Test2; UpdateData(FALSE); Congratulations… Our Program Is Now Finished. Compile And Run The Program.

From A Flowchart... To A Working Program.

Program It In…

Start Visual Basic And Select Standard EXE. Then Press Open

A Blank Form Box Will Appear. Add Three Text Boxes From The ToolBox On To The Form. Add Two Buttons From The ToolBox On To The Form.

Select Command1 Button. Under The Caption Properties, Change To ADD. Change Command2 Caption Property To Exit.

Select Text1 Clear The Text Property So The Text Box Will Be Clear. Do The Same For Text2 And Text3

Double Click On The Exit Button And Insert The Following Code… Unload Me

Double Click On The Add Button And Add The Following Code... Text3.Text = val(Text1.Text) + val(Text2.Text) The Program Is Now Finished

From A Flowchart… To A Working Program.