Creating a Simple Read-Only Provider
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Creating a Simple Read-Only Provider.
When you have created an OLE DB provider using the ATL Project Wizard and ATL OLE DB Provider Wizard, you can add other functionality that you want to support. Start designing your provider by examining what kind of data you will be sending to the consumer and under what conditions. It is especially important to determine whether you need to support commands, transactions, and other optional objects. A good design up front will speed implementation and testing.
The example is presented in two parts:
The first part shows how to create a simple read-only provider that reads a pair of strings.
The second part shows how to enhance the simple read-only provider by adding the
IRowsetLocate
interface.