The information in this article applies to:
SUMMARY
The AdoDataGrid sample demonstrates the various uses and combinations of ADO objects, and shows how to use the ADO Recordset object to populate the Microsoft DataGrid control, which makes presenting data through ADO very easy in Visual C++. MORE INFORMATIONThe following file is available for download from the Microsoft
Software Library. Click the file name below to download the file: AdoDataGrid.exeRelease Date: May-27-1999 For more information about how to download files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base: Q119591 How to Obtain Microsoft Support Files from Online ServicesThe AdoDataGrid sample is a FormView-based SDI MFC application. All the files are wizard-generated. After inserting the ActiveX object (Microsoft DataGrid control), the wizard will provide CColumn, CColumns, CDataFormatDisp, CDataGrid, COleFont, CPicture, CSelBookmarks, CSplit, CSplits, and CStdDataFormatsDisp classes in their respective files. No modification was made in DataGrid and its dependent files for this sample. In this sample, code for manipulating ADO objects is located in AdoDataGridView.cpp. The #import statement for ADO is located in Stdafx.h. There are three methods to use ADO with Visual C++. In this project, the #import method is used. For additional information about other methods, please see the following article in the Microsoft Knowledge Base: Q220152 Sample: ADOVC1 Simple ADO/VC++ Application Brief Description of User Interface
For additional information about this problem, please see the following article in the Microsoft Knowledge Base: Q225132 DataLink Type Library Moved from Msdasc.dll to Oledb32.dllMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Solution Provider or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Solution Providers, please see the following page on the World Wide Web: http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.asp REFERENCES© Microsoft Corporation 1999, All Rights Reserved. Additional query words:
Keywords : kbfile kbADO200 kbADO210 kbDatabase kbVC600 kbGrpVCDB kbGrpMDAC |
Last Reviewed: November 11, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |