Implementing an OLE DB Template Consumer

The following topics show how to edit the files created by the ATL COM AppWizard to create a simple consumer that works with the simple provider shown in Implementing a Simple Read-Only Provider. Ordinarily, you would use the ATL Object Wizard to create most of the code shown in the following topics. The code generated by the ATL Object Wizard assumes that the provider supports schema rowset functionality. Because the simple provider does not support schema rowsets, the examples show how to create the code manually.

The extended example is presented in two sections:

You can find the finished code for the enhanced simple provider and consumer in the sample MyProv: A Simple Read-Only Provider.

Back to Using the OLE DB Consumer Templates