INFO: Programmer's Guide to Using ADO in Visual C++

Last reviewed: October 2, 1997
Article ID: Q172392
The information in this article applies to:
  • Microsoft Visual C++, 32-bit Editions, version 5.0

SUMMARY

This article presents information that can be useful to anyone wanting to take advantage of the ActiveX Data Objects within Visual C++ version 5.0. The following topics are covered:

  • Implementations of ADO within Visual C++
  • How to find ADO Knowledge Base Articles
  • ADO Resources/Points of Information

MORE INFORMATION

Implementations of ADO within Visual C++

Any of the three methods can be used to get at the ADO typelib within Visual C++:

  • #import
  • MFC-OLE derived classes
  • OLE SDK

Of the three methods, #import offers the easiest (i.e. least amount of code) method of getting at and manipulating ADO objects.

How to Find ADO Knowledge Base Articles

ADO is not a technology that ships with one particular product, and is not treated as its own product. To find ADO KB articles on the Web, connect to the following URL:

    http://www.microsoft.com/kb/default.asp

and then click "ActiveX Data Objects" as the Product.

For the MSDN or other non-web-based KB search mechanisms, you can search on the keyword “adobj” which is contained in all ADO articles. Other keywords which offer greater granularity when searching are documented in the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q168337
   TITLE     : HOWTO: Searching for ADO Articles by KBSubcategory


ADO Resources/Points of Information

ADO originally shipped with the OLE-DB SDK, so you should hit both the OLE-DB web page as well as the ADO web sites listed below:

    http://www.microsoft.com/data/ado/
    http://www.microsoft.com/data/oledb/


REFERENCES

For additional information, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q169496
   TITLE     : INFO: Using ActiveX Data Objects (ADO) via #import in VC

Version           : WINDOWS NT:5.0
Platform          : NT WINDOWS
Issue type        : kbinfo
Solution Type     : Info_Provided


================================================================================


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: October 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.