Microsoft KB Archive/194652

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

Article ID: 194652

Article Last Modified on 8/9/2004

-

APPLIES TO


 * Microsoft OLE DB 1.5
 * Microsoft OLE DB 2.0
 * Microsoft OLE DB 2.1
 * Microsoft OLE DB 2.5
 * Microsoft OLE DB 2.6

-



This article was previously published under Q194652



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 and also with Microsoft Data Access Components (MDAC) 2.5 and 2.6.

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:

ATLOSP.EXE

Release Date: 10-28-1998

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to Obtain Microsoft Support Files from Online Services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

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.

