CONDOC.EXE Extract Container/Document Info with MFC DAO (152316)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- 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
This article was previously published under Q152316 SUMMARY MFC does not currently provide methods for extracting
container and document information from DAO collections. The sample, CONDOC.EXE
demonstrates how to implement this extraction using MFC DAO objects and, in
particular, demonstrates using DAO OLE interfaces not directly available from
the MFC DAO classes. Containers provide an application-independent
way for an application to store objects in a database. For example, Microsoft
Access uses separate containers to store forms, reports, macros, and modules.
This is in a format native only to Access. However, the code below shows how to
see which containers are stored in an Access database. Documents are
used to store a specific instance of an application-specific object within a
container, such as a form, a report, etc. A container can have more than one
document collection. To repeat, Microsoft Access documents and containers are
in a format native to Access and not available programatically from other
products except through OLE Automation using Access
itself. The
following files are available for download from the Microsoft Download
Center: Condoc.exe
For
additional information about how to download Microsoft Support files, click the
following article number to view the article in the Microsoft Knowledge Base: 119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
NOTE: Use the -d option when running CONDOC.EXE to decompress the file
and recreate the proper directory structure. REFERENCES Microsoft Jet Database Engine Programmer's Guide, ISBN #:
1-55615-877-7.
Modification Type: | Minor | Last Reviewed: | 8/5/2004 |
---|
Keywords: | kbdownload kbcode kbDatabase kbfile kbsample KB152316 |
---|
|