In MFC, the data Access database based on ODBC is changed and deleted.

Source: Internet
Author: User
Tags odbc what odbc

There are a number of ways in which you can manipulate a database in MFC.

What ODBC what ADO and so on, here to introduce the use of ODBC this method, through the reading of this article can be reached in the initial grasp of MFC in the Access database through ODBC.

Software involved: The system Win7 64 bits, the development environment is vs2010,office2007.

Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

What is ODBC ...?

ODBC Full name: Open Database Connectivity.

Open? Why call it open?

Because ODBC is the first time in the design to reach the maximum independence and openness: independent of the specific programming language, independent of the specific database system, regardless of the specific operating system.

Who developed the ODBC? Is Microsoft's software programmer.

Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

The development History of ODBC is as follows:

ODBC 1.0: Posted on September 1992
ODBC 2.0: Posted on 1994
ODBC 3.0: Posted on 1995
ODBC 3.5: Posted on 1997
ODBC 3.8: Published in 2009, with Windows 71

Xxxxxxxxxxxxxxxxxxxxxxxxxx

The above is the background knowledge of ODBC. Here's the point.

Just said that the ODBC design is to cross-system cross-language across the database: So.. Although this article writes about accessing an Access database through ODBC in MFC, ODBC is not limited to MFC.

It is necessary to first explain in MFC Microsoft software engineers to the content of the ODBC package, so that it can better fit into the large framework of MFC.

Here are the results of these fusions.

I didn't see what it was. To tell you the truth, I didn't see anything coming out. So need further. Depth. Look at the MFC package of this three ODBC-related classes (cdatabase,crecordset,clongbinary) what is inside ...

In MFC, the data Access database based on ODBC is changed and deleted.

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.