AtlOSP.exe Visual C++ OLE DB Simple Provider Sample

ID: Q194652


The information in this article applies to:
  • Microsoft OLE DB, versions 1.5, 2.0


SUMMARY

The ATLOSP sample is an OLE DB provider written using the OLE DB Simple Provider kit included with the OLE DB 1.5 Software Development Kit (SDK). It is written using Visual C++ 5.0 and the Active Template Library (ATL). You can also use this sample with the newer Data Access SDK components that are provided with Visual Studio version 6.0.

The sample contains two projects, one for the simple provider (named AtlOSPV5), and the other for the application that demonstrates how to use the provider (named Consumer).


MORE INFORMATION

The following file is available for download from the Microsoft Download Center. Click the file name below to download the file:

ATLOSP.EXE
Release Date: 10-28-1998

For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.



How to use the Sample File

Use the following steps to run the sample:
  1. Install the OLE DB SDK.


  2. Download the sample and run the self-extracting .exe file.


  3. Load the workspace for the sample and add the OLEDBSDK\INCLUDE, OLEDBSDK\OSPTK\INCLUDE, OLEDBSDK\LIB, and OLEDBSDK\OSPTK\LIB directories to your INCLUDE and LIB directories by selecting Options from the Tools menu.


  4. Build the AtlOSP project.


  5. Set the active project to the Consumer project.


  6. Build and run the Consumer sample.


There are directions in the application's dialog box that describe how to edit a record, delete a record, find a record, and insert a record.


REFERENCES

For more information about writing simple OLE DB Providers, please see the documentation in the "OLE DB Simple Provider Toolkit" Help file included with the OLE DB 1.5 SDK.

Additional query words: kbdse kbfile

Keywords : kbfile kbsample kbATL kbDatabase kbOLEDB kbOSP kbGrpMDAC kbDSupport kbGrpODBC
Version : WINDOWS:1.5,2.0
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: January 13, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.