Visual Studio

Mastering MFC Development using Microsoft Visual C++ 6.0
(Microsoft Training Course: 1015) - 5 days - £2640 exc VAT

> Target Audience
This course will teach C++ programmers how to develop applications by using Microsoft Foundation Class (MFC) Library and the Microsoft Visual C++ 6.0 development environment.
> Course outline
  1. Introduction to Microsoft Visual C++ 6.0
  2. Debugging and Error Handling
  3. Enhancing User Interface Features
  4. Implementing View Classes
  5. Using Controls
  6. Creating ActiveX Controls
  7. Using OLE DB Templates for Data Access
  8. Creating ADO Database Applications
  9. Building Internet Applications
  10. Printing and Print Preview

Supplementary InformationThis course has now retired and is no longer available. We suggest you look at [[{http://www.F1Comp.Co.UK/computer_training/Microsoft_Training_Courses/Visual-Studio-.Net/2124.aspx}Course 2124: Programming with C#]].
Module 1: Introduction to Microsoft Visual C++ 6.0
  • Overview of Visual C++ and MFC
  • Enhancements to Visual C++
  • Enhancements to MFC
  • Lab: Creating an MFC application by using AppWizard
  • Describe the features of Visual C++ and MFC Library.
  • List the major enhancements made to Visual C++ and MFC in Visual C++ 6.0.
  • Create, build, and run an MFC application.
Module 2: Debugging and Error Handling
  • Debugging
  • Handling errors and exceptions
  • Lab: Using Edit and Continue
  • Lab: Implementing exception-handling
  • Use the Visual Studio Debugger to identify and eliminate errors.
  • Use the Edit and Continue feature to simplify debugging.
  • Write functions with built-in error-handling code.
  • Use the C++ exception-handling technique to handle runtime exceptions.
  • Describe and use the various types of MFC exception classes.
Module 3: Enhancing User Interface Features
  • Enhancing menus
  • Enhancing toolbars
  • Enhancing status bars
  • Enhancing dialog boxes
  • Using modeless dialog boxes
  • Using dialog bars
  • Using rebars
  • Lab: Creating a dynamic menu
  • Lab: Customizing the common dialog class
  • Lab: Adding a modeless dialog box
  • Lab: Adding a dialog bar
  • Lab: Adding a rebar
  • Create dynamic menus, cascading menus, and ownerdraw menus.
  • Place dockable toolbars in an application.
  • Include graphics and additional panes in status bars.
  • Use and customize common dialog boxes.
  • Extend dialog data validation (DDV).
  • Create tabbed dialog boxes and property sheets.
  • Invoke and display modeless dialog boxes.
  • Create dialog bars and rebars.
Module 4: Implementing View Classes
  • Introduction to views
  • Adding multiple views
  • Adding scrolling views
  • Implementing splitter windows
  • Implementing form views
  • Implementing control views
  • Creating an Explorer-style application
  • Coordinating multiple interrelated views
  • Lab: Adding a splitter bar to an application
  • Lab: Adding Open File dialogs and a rich edit view
  • Lab: Building a text viewer (optional)
  • 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 views derived from the CView class.
  • Create SDI and MDI applications with multiple views.
  • Implement interrelated views in an application.
Module 5: Using Controls
  • Windows common controls
  • Internet Explorer 4.0 common controls
  • ActiveX controls
  • Controls supplied by MFC
  • Lab: Creating controls dynamically
  • Lab: Adding the Progress control
  • Lab: Using the Calendar control
  • Add Windows common controls, Internet Explorer 4.0 common controls, ActiveX controls, and controls supplied by the MFC library to MFC applications.
Module 6: Creating ActiveX Controls
  • Overview of ActiveX controls
  • ActiveX control properties
  • ActiveX control methods
  • ActiveX control events
  • Implementing ActiveX control property pages
  • Creating an enumerated property
  • Data binding in an ActiveX control
  • Optimizing ActiveX controls
  • Debugging and handling errors in ActiveX applications
  • Lab: Building an ActiveX control using an existing class
  • Describe the advantages of the ActiveX control technology.
  • Describe the elements of an ActiveX control.
  • Explain the features of the ControlWizard in creating an ActiveX control.
  • Describe the primary tasks of an ActiveX control container.
  • Explain the interaction between an ActiveX control container and an ActiveX control.
  • Use ControlWizard to create skeletal code for your ActiveX control.
  • Use ClassWizard to define properties, methods, and events for your ActiveX control.
Module 7: Using OLE DB Templates for Data Access
  • Overview of OLE DB
  • Introduction to OLE DB templates
  • Creating an OLE DB consumer application
  • Lab: Create an OLE DB consumer applica-tion by using the CAccessor class
  • Lab: Create an OLE DB consumer application by using the CDynamicAccessor class
  • State the benefits of using the OLE DB technology for data access.
  • Describe the role of OLE DB components in data access.
  • Explain the architecture of provider and consumer template classes.
  • Build consumer applications using OLE DB consumer templates.
Module 8: Creating ADO Database Applications
  • Introduction to ADO
  • Using data controls
  • Using data bound dialog
  • Performing queries
  • Lab: Using the data bound dialog
  • Describe the role of ADO in applications that require database access.
  • Describe the ADO object model.
  • Implement ADO in MFC applications using data controls.
  • Implement ADO in MFC applications using the Data Bound Dialog.
  • Perform queries and searches on databases and rowsets.
Module 9: Building Internet Applications
  • Basic Internet concepts
  • Using the Internet Explorer object
  • Using the Web Browser control
  • Using the WinInet classes
  • Using the WinSock classes
  • Lab: Using the Web Browser control
  • Lab: Using the HTTP WinInet classes
  • Lab: Adding an HTML view
  • Describe the Internet framework.
  • Describe the different types of Internet applications.
  • Create MFC-based applications that invoke Internet Explorer.
  • Use the Web Browser control in MFC applications.
  • Create MFC applications that use the WinInet classes to communicate across the Internet.
  • Create MFC applications that use the synchronous and asynchronous WinSock classes
Module 10: Printing and Print Preview
  • Adding default printer support
  • Enhancing printer support
  • Lab: Adding Print and Print Preview to an application
  • Describe the printing process and the default printing capabilities provided by MFC for an AppWizard-generated application.
  • Add default printer support to your application.
  • Retrieve information relating to printers and print jobs at run time.
  • Enhance default printer support to implement custom requirements.
> Pre-Requisites
This course requires that students meet the following prerequisites:
  • C++ programming skills
  • Some programming experience with MFC Library
  • 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 Visual Studio development environment
  • Familiarity with Microsoft Internet Explorer
  • Creating, modifying, compiling, and running projects in Visual Studio
  • Familiarity with object-oriented programming (OOP) terminology and concepts such as objects, properties, and methods
  • Completing MOC Course 1011, Mastering MFC Fundamentals Using Microsoft Visual C++, satisfies the prerequisite skills listed above.
> Purpose
At the end of the course, students will be able to describe the Visual C++ 6 development environment , describe the new MFC features introduced with Visual C++ 6, debug MFC applications, create robust applications that handle errors and exceptions, enhance the user interface features of an application by adding dynamic menus, graphical status bars, rebars, and dialog bars, implement view classes, use Microsoft Windows operating system controls, Internet Explorer controls, and ActiveX controls in MFC applications, use ActiveX and component object model (COM) objects in MFC, create ActiveX controls, create applications that access both DBMS and non DBMS data sources by using OLE DB templates and ActiveX Data Objects (ADO, create MFC applications that communicate across the Internet
> Supplementary Information
This course has now retired and is no longer available. We suggest you look at [[{http://www.F1Comp.Co.UK/computer_training/Microsoft_Training_Courses/Visual-Studio-.Net/2124.aspx}Course 2124: Programming with C#]].