How to use the MFC database classes in a console application in Visual C++ (152696)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 2.2
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q152696 SUMMARY The MFC database classes found in Visual C++ versions 1.x,
2.x, 4.0, and 4.1 were not written to be used in a console application.
However, with some modification, you can use the 32-bit database classes in a
console application. The techniques presented here apply to both the MFC ODBC
and MFC DAO classes.
Starting with Visual C++ 4.2, the MFC ODBC
classes were rendered safe for use within console applications. Many of the
internal dependencies listed below are no longer present in the 4.2 and later
MFC ODBC class libraries.
Modification Type: | Major | Last Reviewed: | 9/7/2005 |
---|
Keywords: | kbDAO kbinfo kbDatabase kbhowto kbProgramming kbusage KB152696 kbAudDeveloper |
---|
|