SAMPLE: DLGDB CDialog Sharing a CRecordset Object

Last reviewed: June 26, 1997
Article ID: Q127193

The information in this article applies to:
  • The Microsoft Foundation Classes, included with:

        - Microsoft Visual C++ for Windows, versions 1.0, 1.5, 1.51, 1.52
        - Microsoft Visual C++, 32-bit Edition, versions 2.0, 2.1, 4.0
    

NOTE: This is the 16-bit version of this sample. There is an equivalent 32- bit sample available under the name DLGDB32.

The DLGDB code sample demonstrates how to have a CDialog derived class share a CRecordset object that a CRecordView is already using. In addition, when used by itself, the code sample also demonstrates how to select CRecordset object from a CDocument without having a CRecordView.

NOTE: This sample assumes that ODBC has been installed and that the Student Registration data source has been configured.

NOTE: The file must be decompressed by typing "DLGDB -d".

The following file is available for download from the Microsoft Software Library:

 ~ Dlgdb.exe (size: 35650 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services


Additional query words: DLGDB32
Keywords : kbfile kbprg MfcDatabase
Technology : kbMfc
Version : 1.0 1.5 1.51 1.52 2.0 2.1 4.0
Platform : NT WINDOWS
Resolution Type : kbpatch


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 26, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.