MultiSingle (MSDI) Document interface with DAO doc | CodeGuru

MultiSingle (MSDI) Document interface with DAO doc

Download files 497K. What is a MultiSingle document. For Multisingle document interface, please refer to the MSDI with little change to the class name CviewFrame -> CMSDIViewFrame etc.. Multisingle document with DAO Access. This sample shows a MSDI sample application to open an MS-ACCESS Database as an only one document. If you change to another […]

Written By
CodeGuru Staff
CodeGuru Staff
Aug 6, 1998
2 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Download files 497K.

What is a MultiSingle document.


For Multisingle document interface, please refer to the

MSDI

with little change to the class name CviewFrame -> CMSDIViewFrame etc..

Multisingle document with DAO Access.


This sample shows a MSDI sample application to open an MS-ACCESS Database as an only one document. If you change to another Database, the actual database is closed with all views (like MS-ACCESS).

The document contains the Database object and the recordset objects. Only one recordset per table is opened. If two views open the same recordset, the recordset is shared between views. An open count is updated to see if the recordset must be closed (Opencount == 0 on close).

This sample works with the sampdata.mdb database only (from DAOVIEW MFC sample). For most TRUE applications, the tables are fixed and a generic table browser is not ideal (like DAOVIEW).

With a double click or return key on the list view, a CformView derived class will be opened.

The sample is not a whole application. Only specifics problem are resolved.

Advertisement

Of interest in this sample.

– MSDI Sample Application likes MS-ACCESS.

– The Save as command saves really the whole database in another file.

– Structures and functions to create tables with index, not only to read existing tables.

– List view to display table.

– Print preview for list view with Header, footer and margins.

– Fit to page list view printing or splitting on multi page.

– Copy to for list view in the Clipboard.

– Extract and display bitmap from ClongBinary as a CDaoBitmap class.

Future.


If you have some questions or if you have significant generic add on, please contact me.

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.