SQL Server MFC DAO classes and MFC ODBC classes

Source: Internet
Author: User
Tags odbc

Most MFC developers are familiar with Open Database Connectivity (ODBC) database classes-they appear as early as 3.5. In MFC 4.2, there are some important improvements to these classes.

As a C + + developer, you may not be familiar with DAO because it is only available to Microsoft Access and visual basic® programming systems so far. If you are familiar with DAO, you must understand that DAO's implementation in MFC is quite different, but it is extensive.

Developers who understand the MFC ODBC classes must know that although the MFC DAO analogy ODBC classes are more functional, DAO classes cannot replace them.

For those who are not familiar with MFC, I would like to remind you that MFC has a design principle that applies to a variety of database classes.

MFC, like a thin wrapping paper, encapsulates the windows® operating system API, providing the C + + performance you want, while providing the abstract concepts you need. Add a value to the underlying API when it has real meaning. But most of the time MFC tries to keep it untouched.

Just as MFC encapsulates more complex APIs, database classes encapsulate more complex techniques. Because MFC can move values between Intel, UNIX, and Alpha, the database application solution is also a removable value.

We use the same recordset model with Microsoft Access and Visual Basic, so developers who already use those products don't have to learn new paradigms. In addition, the architecture of the two-class set is essentially the same, and developers using one of the class sets can easily switch to another class set and use it.

MFC Database Classes

ODBC database classes have been included in MFC since version 1.5. Visual C + + version 2.0 provides a 32-bit version containing the same class. These classes are based on an industry accreditation standard and have been widely used, and are favored by other database development options because of their portability of ODBC. This portability refers to the ability to use many ODBC data sources with applications created with these classes. Recent performance improvements have made ODBC database classes an attractive option.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.