MDAC 2.5 SDK - OLE DB Providers
OSP Toolkit


 

OLE DB Simple Provider Toolkit

The Microsoft® OLE DB Simple Provider (OSP) Toolkit offers a framework that simplifies the task of writing OLE DB providers over simple data and exposing that data to any OLE DB consumer (such as ActiveX® Data Objects or any OLE DB–compliant application or control). Using the OSP Toolkit, developers can quickly build OLE DB providers over simple data sources (for example, in-memory arrays) and can expose OLE DB interfaces without having to build an entire OLE DB provider from scratch. The OSP Toolkit is language neutral, supporting implementations in Microsoft Visual Basic®, Microsoft Visual C++®, and Microsoft Visual J++®.

The OSP Toolkit employs several new Microsoft component technologies, including the following:

The general steps to building a simple provider involve writing your OSP data access code (the OSP Language Reference is supplied with the Toolkit), implementing the OSP data source object (which requests an OSP implementation), and registering the OLE DB Simple Provider DLL and OSP implementation DLL. For a more detailed description of these steps, see "Building a Simple Provider: Step Summary."

Because the OLE DB Simple Provider Toolkit is designed to quickly build OLE DB providers over simple data, the providers built with the Toolkit are less functional than a full OLE DB provider written using the native OLE DB interfaces. You might want to read about these limitations before using the Toolkit.

For more information about developing a full OLE DB provider, see "Using the OLE DB Provider Templates" in the Visual C++ documentation.