Object Oriented Programming Dr. Ennis-Cole CECS 5100.

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

When is Orientated Programming NOT? Mike Fitzpatrick.
Creating a Dialog-Based Comet Windows Program Brian Levantine.
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Visual Basic Project Files:.VBP file: Project File: a small text file that contains the names of other files in the project, as well as some information.
Introduction to Visual Basic Programming. Lecture Outline History What is Visual Basic First Look at the VB 6.0 Environment Some VB Terminology Our first.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Slide 1 ICS 012 Visual Programming I Ahmed Esmat Second.
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
C++ fundamentals.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
Microsoft Visual Basic 2005: Reloaded Second Edition
Using Visual Basic 6.0 to Create Web-Based Database Applications
An Introduction to Visual Basic
Visual C++ Lecture 11 Friday, 29 Aug Windows Graphic User Interface l Event driven programming environment l Windows graphic libraries (X11 on Unix,
Threading Models in Visual Basic Language Student Name: Danyu Xu Student ID:98044.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
C++ MFCs CS 123/CS 231. MFC: Writing Applications for Windows zClasses in MFC make up an application framework zFramework defines the skeleton of an application.
BZUPAGES.COM Visual Programming Lecture – 5 Miss. SADAF MAJEED SIAL Computer Science Department Bahauddin Zakariya University Multan.
2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and.
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.
Chapter 11 An Introduction to Visual Basic 2008 Why Windows and Why Visual Basic How You Develop a Visual Basic Application The Different Versions of Visual.
Chapter 34 Java Technology for Active Web Documents methods used to provide continuous Web updates to browser – Server push – Active documents.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
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.
1 Course Title: Visual Basic Programming Topic: Introduction to programming Languages (Visual basic 6.0) Lecturer: Mahamud Ahmed Jimale, BsIT, MsCs, CCNA,
OBJECTIVE  After completing this Lab, students will upgrade their knowledge in the field of VC++.  Students will also get the clear view about the concepts.
Irwin/McGraw-Hill Copyright© 2000 by the McGraw-Hill Companies, Inc. PowerPoint® Presentation to accompany prepared by James T. Perry University of San.
Lection №5 Modern integrated development environment.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
CITA 342 Section 2 Visual Programming. Allows the use of visual expressions (such as graphics, drawings, or animation) in the process of programming.
1.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Imagine Creating Software Without a Single Line of Code!
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Object Oriented Programming Dr. Ennis-Cole CECS 5100.
Overview of Previous Lesson(s) Over View 3 Program.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Chapter 1: Introduction to Computers and Programming.
Lecture 3 Visual Basic for Applications in Access 1 Rapid Application Development.
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…
Creating ActiveX Controls at runtime If you need to create an ActiveX Control at runtime without a resource template entry, follow the programming steps.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
SESSION 1 Introduction in Java. Objectives Introduce classes and objects Starting with Java Introduce JDK Writing a simple Java program Using comments.
C# Diline Giriş.
Dive Into® Visual Basic 2010 Express
Introduction to Computer CC111
Chapter Topics 15.1 Graphical User Interfaces
An Introduction to Computers and Visual Basic
1. Introduction to Visual Basic
Integrating Word, Excel, and Access
Chapter 3: Windows7 Part 1.
Module 0: Introduction Chapter 2: Getting Started
Module 1: Getting Started
Hands-on Introduction to Visual Basic .NET
CIS16 Application Development Programming with Visual Basic
Microsoft Visual Studio
CS285 Introduction - Visual Basic
Chapter 15: GUI Applications & Event-Driven Programming
Khongorzul D Window Programming CBNU,
Presentation transcript:

Object Oriented Programming Dr. Ennis-Cole CECS 5100

Object Oriented Programming Steps: 1.) Visual Design 2.) Code Writing

Object Oriented Programming Object Oriented Programming Controls toolbar, P. 23

OOP - Visual C++ MFC Microsoft Foundation Class * Wizards to develop applications * MFC AppWizard (dll) - generates source files and resource files

OOP - Visual C++ MFC MFC AppWizard (exe) - larger exe files MFC Active X Control Wizard - creates starter files for plug-ins

OOP Visual C++ MFC MFC Active X Control Wizard - multimedia, db, client server applications MFC ATL Wizard - Active Template Library - objects, controls

OOP - Visual C++ Developer Studio - integrated tools for creating, testing, and refining applications. Complete development environment

Popularity of Visual C++ A. Code Reusability B. Application Wizards (dlls, Active X, Atl Com Objects) B. Application Wizards (dlls, Active X, Atl Com Objects) C. Integrated development environment C. Integrated development environment D. Components and Controls Gallery D. Components and Controls Gallery (reusable components & controls) (reusable components & controls)

Popularity of Visual C++ E. Support for MFC Library F. Portability F. Portability G. Cross Platform support G. Cross Platform support H. Availability in other languages H. Availability in other languages I. Supports latest C++ features I. Supports latest C++ features

OOP - Visual C++ b Day 1: b Directory, Project, MFC AppWizard b Used pushbutton controls in a dialog box b Attached the (BN_CLICKED) event to the pushbutton b Classes Created: CHelloApp & CHelloDlg b Prefixes: Functions ON_WM; Messages WM_; Objects IDC_; Dialog Boxes IDD_

Object Oriented Programming Object Oriented Programming b OOP - a programming technique that relies on reusable software components that can be applied to different types of problems and applications. The programmer makes the machine work in terms of concepts closer to the user’s every day world. b Principle unit - An Object

Objects b Separate Components : Say HelloSay Hello Exit Exit Each had its own Caption & ID (IDC_…) Each had its own Caption & ID (IDC_…) b Belonged to the CHelloDlg Class b An instance of CHelloDlg Class b Created within the Visual Environment

Objects b Private data ( ) b Procedures that could access that data written in the CHelloDlg Classwritten in the CHelloDlg Class Member functions: Member functions: – OnSayhelloButton( ) –OnExitButton( ) b A program can be thought of as a collection of objects

Objects b Messages BN_CLICKEDBN_CLICKED BN_DOUBLECLICKEDBN_DOUBLECLICKED b Respond to predefined external stimuli Mouse ClickMouse Click b Communication Represent the events to which an object can respondRepresent the events to which an object can respond

Structure of a Function void reference, Class name ::, function name, ( ), {, Comments, Attached Code, Comments, }

Classes b Case sensitivity b Properties Tables, P. 43 b Group Box, P. 52, Properties Table, P. 59 b Variables - storage containers: Memory LocationMemory Location Amount of MemoryAmount of Memory m_TestEdit = “ ”;m_TestEdit = “ ”; 20 FFFA, 2 bytes Num1

Variables - Changeable Quantities b An actual representation of a data type ValueIntegerValueInteger CSTRINGCharacterCSTRINGCharacter BOOLDouble, FloatBOOLDouble, Float b Other Functions: MessageBox(“ ”);MessageBox(“ ”); UpdateData(False); - updates screen w/new valuesUpdateData(False); - updates screen w/new values

New Windows Controls Edit Box, Check Box, Static, Group Box Right Click on on your mouse for property Settings Use P. 59 for your object’s properties Introduction of Keyboard Shortcuts

Windows Programs b Calculator b Paint b Invoked via entries in the the Edit Box ab| (Calculator or Paint)

Events b Linked with messages b After communication between objects, some action takes place. This action has the code in it to perform a set task - initialize a dialog box, paint, execute a system command.

The End The End b “That’s all folks.”