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

ID: Q194652

The information in this article applies to:

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 (called AtlOSPV5), and the other for the application that demonstrates how to use the provider (called Consumer).

MORE INFORMATION

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

~ AtlOSP.exe     Release Date: 10-28-1998

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

Use the following steps to run the sample:

1. Install the OLE DB 1.5 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.

Keywords          : kbATL kbDatabase kbOLEDB kbOSP 
Version           : WINDOWS:1.5,2.0
Platform          : WINDOWS

Last Reviewed: November 1, 1998