Click to open or copy the MyProv project files.
The MyProv sample demonstrates how to create an OLE DB provider that that reads a set of two strings from a file. The default OLE DB Template row-fetching mechanism is enhanced by adding the IRowsetLocate interface to CMyProviderRowset. The implementation of this interface demonstrates:
For a complete description of this sample, see Implementing an OLE DB Template Provider in the OLE DB Template articles.
To run this read-only provider, you need to have an appropriate OLE DB consumer application. For this purpose, you can use the accompanying test consumer, which is described in Implementing an OLE DB Template Consumer.