Microsoft Knowledge Base Email Alertz

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 thi

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 194652 - Last Review: August 9, 2004 - Revision: 2.2

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

This article was previously published under Q194652

On This Page

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 (http://download.microsoft.com/download//vc50pro/sample/4/win98/en-us/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  (http://kbalertz.com/Feedback.aspx?kbNumber=119591/EN-US/ ) 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.

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, 2.0, or 2.5 SDK.

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
Keywords: 
kbdownload kbdatabase kbfile kbinfo kbsample KB194652
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate