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.