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 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.

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.



Comments

  • Open View from TreeView Control?

    Posted by Legacy on 09/05/2001 12:00am

    Originally posted by: Jawhar Ben Salah

    I'm Creating a MultiView Application with single document. One the the views I'am using is the menu of the application and it's consist of a treeview control containing all other views call.
    I like to open one of these views by clicking in one item from the TreeView control.
    I Implemented the TreeView OnSelChanged method on the FormView containing the TreeView Control but it does not resolve the problem because I can't use the GetActiveView and other methods I must use at this point.
    that's way I changed the implementation of the function(OnSelChanged) to the MainFrame CPP file but nothing it's happen when I clicked on the treeview control!
    How can I perform this?
    Thank you for helping me?

    Reply
  • Open MS-Access database error.

    Posted by Legacy on 05/21/1999 12:00am

    Originally posted by: Wong

    When I open the MS-Access database file, It display an error
    message "The Jet VBA file(VBAJET.DLL for 16 bit or VBAJET32.DLL
    VERSION) failed to initialize when called.

    Anybody give me some help?

    Reply
  • Open MS-Access database error.

    Posted by Legacy on 05/21/1999 12:00am

    Originally posted by: Wong

    When I open the MS-Access database file, It display an error
    message "The Jet VBA file(VBAJET.DLL for 16 bit or VBAJET32.DLL
    VERSION) failed to initialize when called.

    Anybody give me some help?

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: November 20, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT Are you wanting to target two or more platforms such as iOS, Android, and/or Windows? You are not alone. 90% of enterprises today are targeting two or more platforms. Attend this eSeminar to discover how mobile app developers can rely on one IDE to create applications across platforms and approaches (web, native, and/or hybrid), saving time, money, and effort and introducing apps to market faster. You'll learn the trade-offs for gaining long …

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds