Pugh-Killeen Logo

C++ and Visual C++ for C Programmers

Home | Contact Us

Description

This course introduces the C programmer to the C++ language and Microsoft Visual C++. It describes how C++ can be used to write better C and how Visual C++ is used to create Microsoft Windows programs.

This class assumes the student has programmed in C for at least six months or has taken the C course. It also assumes the student has used Microsoft Windows applications. The five day class combines lecture with hands-on exercises.

Objectives

By the end of the course you will be able to:

  • Write a Microsoft Windows program using Microsoft Visual C++
  • Understand the different parts of the Visual C++ workbench including the Resource Editor and the Class Wizard
  • Write member functions that respond to Microsoft Windows events

Instructor

The instructor is Kenneth Pugh, a recognized C and C++ language expert. Mr. Pugh has many years of experience in programming a variety of languages and operating systems. He is author of several books, including C Language for Programmers and All on C. He was a columnist for the C User's Journal and the C++ Journal. He has been on the faculty of the University of Hawaii and Wellesley College.

Outline

  • Introduction
    • Features of Microsoft Visual C++
    • Creating an sample Microsoft Windows program
  • Review of C Features related to C++
    • Structures
    • Pointers versus References
    • Function Prototypes
    • Enumerations
    • Declarations and initializations
    • Memory management - malloc and free versus new and delete
  • Classes
    • Data members
    • Function members
    • Object Initialization - Constructors
    • Object Cleanup - Destructors
    • Default operations - copy constructor and assignment
    • Static members
    • Static functions
  • Functions
    • Call by value and call by reference
    • Function overloading
    • Default arguments
    • Operator functions and overloading
    • Friend functions
    • Inline functions
    • Const functions
  • Encapsulation
    • Public, Private, Protected Inheritance
    • Scope of names
    • Resolution operator ::
  • Polymorphism
    • Pointers to base class
    • Virtual functions and vtbl
    • Pure versus non-pure functions
  • Input and Output Library
    • iostreams
    • cout << operator
    • cin >> operator
    • Writing cout, cin friend functions
  • Wizards and the Framework
    • Creating a program using App Wizard
    • The Application Framework
    • Microsoft Foundation Classes
  • The Tools
    • Visual Workbench
    • Resource Editor
    • App Wizard
    • Class Wizard
  • Window classes
    • CApp - the application
    • CFrameWnd - the window
    • CView - the view
    • CDoc - the document
    • CDocTemplate - connection between CDoc, CView, and CFrameWnd
  • Messages
    • The Message Table
    • Class Wizard operations
  • Resources
    • Menus
    • Dialog Boxes
    • Icons
    • String table
    • Accelerator keys
    • Resource properties
  • Controls and Variables
    • Dialog Data Exchange
    • Dialog Data Validation
    • Class Wizard operations
  • Other operations
  • Printing
  • Help
  • Files and serialization

Copyright (c) 1996-2007 Pugh-Killeen Associates

Home Services Solutions Classes Resources About Us Contact Us Legal