SlideServe
Menu
Préférences
© SlideServe · v2026

Object Oriented Programming

dorothylee avatar
15 diapositives · 302 Views · Oct 22, 2019

Learn about object-oriented programming (OOP) with Visual C++, including member variables, their categories, and implementation of different data types. Also explore the use of ActiveX controls for extending VC++ programs.

Object Oriented Programming - slide 1
1 / 15

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 Member Variables: 1.) Have Names 2.) Belong to Categories 3.) Are an implementation of a type of data

  3. Object Oriented Programming Member Variables: Names - m_TestEdit Categories - Value, Control Variable types - Cstring, Bool, Ccalendar, int, double, float

  4. OOP - Visual C++ Check Boxes: Visible & Enable Control the Edit Box and the appearance of text inside it.

  5. OOP - Visual C++ Exit Button’s Design - makes it “standout,” draws the user’s attention to the bottom of the screen, uses a new property - the modal frame

  6. OOP Visual C++

  7. OOP - Visual C++ Numbers - + , Category: (Value, Control) Type of Data -64.0 -50.2 -2 17 12 32.41 25.67 13.82 10 6 -8 -5 -80 11

  8. Test of Equivalency m_VisibleCheck = TRUE; m_TestEdit = “This is a test !”’ if (m_EnabledCheck == TRUE) GetDlgItem (IDC_TEST_EDIT) …;

  9. Member Variables • m_ • Saves data that the program manipulates, tests, or stores • What data was stored, manipulated or tested in the Day 2 exercise ?

  10. IF-Then-Else • Conditional • Two Possible Paths • Used within Loop Structures • P. 80 • Based Comparison Results (T/F)

  11. Changing CASE CString UpperValue; UpperValue = m_TestEdit; UpperValue.MakeUpper( ); Variable Declaration, Assignment Statement, Function/Procedural Call to MakeUpper ( );

  12. Active X Controls • Files with an .OCX extension • A Control added to the Control Tool Bar • Available from a third party vendor • Comparable to a “Plug in” added to a program • Usually in the c:\Windows\System directory

  13. Active X Controls • Procedure for Use: • Register the Control • Add the Control from the Components and Controls Submenu • Placing a Active X Control within a dialog box makes it visible to an end-user

  14. Active X Controls • Implement: • Multimedia Programs • Database Applications • MIDI Applications • Animation Programs • Extend the range of a VC++ Program

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