How To Create an .MDB File for Microsoft Access Databases (118609)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.5
- Microsoft Visual C++ for Windows, 16-bit edition 1.51
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
This article was previously published under Q118609 SUMMARY
NOTE: For information about how to create .MDB files programmatically using
Visual C++ version 4.x or later, please see the following article in the
Microsoft Knowledge Base:
126606
INFO: Accessing CREATE_DB, REPAIR_DB, and COMPACT_DB
An .mdb file is always required to configure a Microsoft Access data source
either by using the Open Database Connectivity (ODBC) administrator or by
configuring the data source programmatically. An .mdb file cannot be
created by using the MFC Database Classes or the ODBC application
programming interface (API).
You can use one of the following methods to have an application configure a
data source on your computer:
- Ship and install the .mdb file along with the application.
- Make the .mdb file into a user-defined resource. Then, copy the .mdb
file at run time.
This article discusses the second method, making the .mdb file into a user-
defined resource.
REFERENCES
For more information on user-defined resources, refer to the Windows SDK
Help.
For additional information on configuring a data source programmatically,
please see the following articles in the Microsoft Knowledge Base:
110507
How To Configure ODBC Data Sources on the Fly
110508
How To Create Tables with Foundation Database Classes
Modification Type: | Minor | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbDatabase kbhowto kbprogramming KB118609 |
---|
|