MDAC 2.5 SDK - OLE DB Providers
OSP Toolkit


 

Microsoft Visual C++

Information and Guidelines

Following is an outline of the basic steps needed to build an OLE DB Simple Provider in Visual C++.

To build the OSP component using Visual C++

  1. Create an Automation object with standard registration.

  2. Implement IDataSource on the object.

  3. Implement the methods for OLEDBSimpleProvider with the object (at least once).

Registration

In Visual C++, you create your own ProgID for the OSP Data Object and use it when registering the OLE DB provider. Because you control the DLLRegisterServer function, you can use it to write the registry entries instead of running a copy of the supplied RegisterProvider.reg file.

Programming Notes