PARSEC Group PARSEC HomeSitemapCall Us
PARSEC Group What's New PARSEC Group Microsoft BackOffice Open VMS Contact Us

Training
Consulting
Products

Mastering MFC Development Using Visual C++
Class #1015

Table of Contents

Introduction
At Course Completion
Microsoft Certified Professional Exams
Prerequisites
Course Materials and Software
Course Outline


Introduction

This course will teach C++ programmers how to develop applications for database front ends and the Internet using the Microsoft® Foundation Class (MFC) Library and the Visual C++® 98 development system.

Return to top


At Course Completion

At the end of the course, students will be able to:

  • Describe the Visual C++ 98 development environment and new MFC features introduced with Visual C++ 98.
  • Enhance user interface features for menus, toolbars, status bars, dialog bars, and dialog boxes.
  • Implement view classes.
  • Use the Microsoft Windows® operating system, Internet Explorer, and ActiveX™ controls in MFC applications.
  • Debug MFC applications using advanced debugging techniques including handling and exceptions.
  • Describe how to use ActiveX and component object model (COM) objects in MFC.
  • Build OLE DB templates to create database applications.
  • Build ADO database applications, create custom queries, and select and lock records.
  • Build Internet applications.
  • Create Internet Server Application Programming Interface (ISAPI) extensions (applications and filters).
  • Satisfy the prerequisites for course 1012, Mastering COM Development Using Microsoft Visual C++.



Return to top


Microsoft Certified Professional Exams

This course will help the student prepare for the following Microsoft Certified Professional exam(s):

  • To be determined



Return to top


Prerequisites

This course assumes that the student has experience and knowledge in the following areas:

  • C++ programming skills
  • Some programming experience with MFC Library
  • Windows-based user skills including using a mouse and menus, file system navigation, and using the Microsoft Internet Explorer interface
  • Familiarity with document/view architecture and non-document/view architecture
  • Windows architecture concepts including event-driven programming, processes, virtual memory models, threading, multitasking, and messaging
  • Using the resource editors, tools, and debugger in the Microsoft Developer Studio™ visual development system
  • Creating, modifying, compiling, and running projects in Developer Studio
  • Familiarity with object-oriented programming (OOP) terminology and concepts such as objects, properties, and methods

Completing course 1011, Mastering MFC Fundamentals Using Microsoft Visual C++, satisfies the prerequisite skills listed above.

The course materials, lectures, and lab exercises are in English. To benefit fully from our instruction, students need an understanding of the English language and completion of the prerequisites.

Return to top


Course Materials and Software

The course workbook and lab book and student CD are the student's to keep.

The following software will be provided for use in the classroom:

  • Mastering MFC Development Using Microsoft Visual C++
  • Microsoft Visual C++



Return to top


Course Outline

Day 1

Chapter 1: Introduction to Microsoft Visual C++ 98

Topics:

Introduction to the Microsoft Visual C++ 98 development environment
Tools to create MFC applications
What's new in MFC and Visual C++ 98
What you can do with MFC after completing this course

Skills:

Students will be able to:

  • List the types of MFC applications they can build with Visual C++ 98.
  • Describe the new MFC features provided in the Visual C++ 98 development environment.
  • Explain the advantages MFC and Visual C++ 98 offer to the developer.

Chapter 2: Enhancing User Interface Features

Topics:

Enhancing menus
Enhancing toolbars
Enhancing status bars
Using dialog bars
Using rebars (a form of toolbars)
Using modeless dialog boxes
Enhancing dialog boxes
Subclassing
Routing commands using advanced techniques

Labs:

Adding a shortcut menu
Adding a dialog bar
Adding a rebar
Adding a progress control
Adding a modeless dialog box
Customizing the common dialog class

Skills:

Students will be able to:

  • Enhance menus, toolbars, status bars, and dialog boxes using advanced techniques.
  • Add dialog bars.
  • Add rebars.
  • Route commands using advanced techniques.

Day 2

Chapter 3: Implementing View Classes

Topics:

Introduction to views
Adding scrolling views
Adding multiple views
Implementing splitter windows
Implementing form views
Implementing control views
Implementing hypertext markup language (HTML) views
Writing an application with multiple interrelated views

Labs:

Adding a splitter bar to an application
Adding Open File dialogs and a rich edit view
Building a text viewer
Adding an HTML view

Skills:

Students will be able to:

  • Describe the purpose of documents, views, templates, and frames within the document/view architecture, and how they interact.
  • Describe the various types of view classes in MFC.
  • Implement applications that use CScrollView, CListView, CSplitter, CTreeView, CEditView, CRichEditView, and CHtmlView.
  • Use two interrelated views in an application.

Chapter 4: Using Controls

Topics:

Adding Windows controls
Adding Internet Explorer 4.0 common controls
Adding ActiveX controls

Lab:

Creating controls dynamically

Skills:

Students will be able to:

  • Add Windows controls to MFC applications.
  • Add Internet Explorer 4.0 common controls to MFC applications.
  • Add ActiveX controls to MFC applications.

Day 3

Chapter 5: Using Advanced Debugging Techniques

Topics:

Using the Developer Studio debugger
Using Edit and Continue
Handling errors and exceptions
Debugging special cases

Labs:

Handling errors and exceptions
Using Edit and Continue
Stack unwinding

Skills:

Students will be able to:

  • Handle errors and exceptions in MFC applications.
  • Use the Edit and Continue feature.
  • Handle debugging for "special case" applications.

Chapter 6: MFC and Component Technology

Topics:

Introduction to COM
Introduction to ATL
Creating an ATL COM project
Using ATL COM objects in an application
Querying for other interfaces
Using the OLE DB consumer templates
Using the OLE DB provider templates

Labs:

Creating a COM object
Creating an OLE DB database application

Skills:

Students will be able to:

  • Describe the purpose and benefits of ATL.
  • Briefly explain the COM specification and related terminology.
  • Use ATL COM AppWizard to create a COM object.
  • Use a COM object in an application.
  • Invoke a COM server from a client application.
  • Query a COM server for other interfaces.

Day 4

Chapter 7: Creating ADO Database Applications

Topics:

Introduction to ADO
ADO classes
Establishing a connection to a database
Running a basic query
Displaying and customizing record sets
Advanced ADO data access techniques

Lab:

Building a database editor with ADO

Skills:

Students will be able to:

  • Describe the role of ADO in applications that interact with databases.
  • Identify and describe the most important issues that a simple ADO-compliant application must address.
  • Use AppWizard to create an ADO database.
  • Implement an ADO connection to a local database.

Chapter 8: Building Internet Applications

Topics:

Introduction
Microsoft Personal Web Server (PWS)
Adding Internet Explorer 4.0 browser functions
Using the WinInet classes
Using the WinSock classes
Sample applications

Labs:

Using the Web Browser control
Using the HTTP WinInet classes
Using the FTP WinInet classes
Adding WinSock capabilities

Skills:

Students will be able to:

  • Describe the Internet framework.
  • Describe several ways an application can connect to the Internet.
  • Configure PWS and use the PWS Administrator Tool to control service settings on a PWS site.
  • Create MFC applications that invoke Internet Explorer.
  • Use the Web Browser control in MFC applications.
  • Create MFC applications that use the WinInet classes.
  • Create MFC applications that use the WinSock classes.

Day 5

Chapter 9: Creating ISAPI Extensions

Topics:

Introduction to ISAPI
Loading and processing ISAPI applications
Building an ISAPI application
Analyzing and debugging ISAPI applications
Loading and processing ISAPI filters
Building an ISAPI filter
Analyzing and debugging ISAPI filters
Sample applications

Labs:

Viewing hypertext transfer protocol (HTTP) messages
Building an ISAPI application
Building an ISAPI filter

Skills:

Students will be able to:

  • Understand the role of server-side Internet components.
  • Create an ISAPI application (DLL) using MFC ISAPI Extension Wizard.
  • Name two instances when ISAPI filters are called.
  • Create a simple ISAPI filter using MFC ISAPI Extension Wizard.

Chapter 10: Printing and Print Preview

Topics:

Adding printer support to an application
The printing process
Retrieving and setting printing information
Managing the printing process
Document versus printer pages

Lab:

Adding Print and Print Preview to an application

Skills:

Students will be able to:

  • Describe the default printing capabilities provided by MFC in an AppWizard-generated application.
  • Describe document-oriented versus page-oriented output, and customize screen and printer output accordingly.
  • Explain how to get printer-specific information at run time and incorporate this information into an application.



Return to top