Fundamentals of
C++

Totally free education on the Internet

About · FAQ ·Tell a Friend · Comments  · Course Home Page  ·  IT Learning Center

About this Course

coverIT05.jpg (2354 bytes)

This course is intended for serious computer hobbyists, IT students, and IT professionals. You need Windows and Visual C++ installed.

The free online textbook for this course is Visual C++ 6 Unleashed . Read the Introduction to the book.

offiste01.jpg (430 bytes) Indicates links that take you away from the Free-Ed.Net site. Use the links on these offsite pages carefully, and use the Back function on your browser to return to the assigments.

 

Lesson 21. MFC Database Classes

The Microsoft Foundation Classes (MFC) encompass several classes that you can use to provide a simpler C++ interface to databases. These classes are particularly useful when quickly generating applications that present a simple, consistent interface to the user.

MFC provides classes for using the open database connectivity (ODBC) API to interface with ODBC datasources, as well as classes for working with object linking and embedding databases (OLE DB) and Data Access Objects (DAO) to work with desktop databases. In this chapter, you will look at the ODBC classes specifically, although the OLE DB and DAO classes are very similar. You can find more information on the DAO classes and OLE DB classes in the online documentation. In addition, OLE DB database classes are covered more extensively in the next chapter.

Reading Assignments

Read the following sections from your free online textbook:

offiste01.jpg (430 bytes) Using the AppWizard to Generate MFC Classes
offiste01.jpg (430 bytes) The CRecordset Class
offiste01.jpg (430 bytes) The CRecordView Class
offiste01.jpg (430 bytes) The CDatabase Class
offiste01.jpg (430 bytes) Exception Handling
offiste01.jpg (430 bytes) Bulk Row Operations
 

Learning Activities

  1. Use this search box to refine and expand your understanding of new terms and concepts in the reading assignments.

Custom Search
  1. offiste01.jpg (430 bytes) Read the Summary of the lesson.


Web design and curriculum: David L. Heiserman

Copyright © 2005 SweetHaven Publishing Services
All Rights Reserved