SlideServe
Menu
Préférences
© SlideServe · v2026

Object Oriented Programming

minnie avatar
21 diapositives · 499 Views · Jul 26, 2014

Object Oriented Programming. Dr. Ennis-Cole CECS 5100. Object Oriented Programming. Steps : 1.) Visual Design 2.) Code Writing. Object Oriented Programming . Controls toolbar, P. 23. OOP - Visual C++ . MFC Microsoft Foundation Class * Wizards to develop applications

Object Oriented Programming - slide 1
01 / 21Object Oriented Programming
1 / 17

Télécharger la présentation

Object Oriented Programming
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Object Oriented Programming Dr. Ennis-Cole CECS 5100

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

  3. Object Oriented Programming Controls toolbar, P. 23

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

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

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

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

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

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

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

  11. Object Oriented Programming • 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. • Principle unit - An Object

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

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

  14. Objects • Messages • BN_CLICKED • BN_DOUBLECLICKED • Respond to predefined external stimuli • Mouse Click • Communication • Represent the events to which an object can respond

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

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

  17. Variables - Changeable Quantities • An actual representation of a data type • Value Integer • CSTRING Character • BOOL Double, Float • Other Functions: • MessageBox(“ ”); • UpdateData(False); - updates screen w/new values

  18. 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

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

  20. Events • Linked with messages • 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.

  21. The End • “That’s all folks.”