|
CODataSource Overview class CODataSource : public CRtnInfo CODataSource wraps the functions of common interfaces on data source object, TDataSource. CODataSource provides three methods to open and initialize a TDataSource object with use of MS data link object, which manages a set of common OLEDB services such as resource pooling, client cursor engine, automatic transaction enlistment, and so on. In few cases, if you need other ways to open a TDataSource object, refer to the ATL consumer templates and MS support web site and extend it for your special purposes. CODataSource also presents a set of functions to simplify retrieving various data source and property information, and setting properties before or after opening a CODataSource object. CODataSource provides a static function, CODataSource::CreateDataSource, to create a MS Access database file. For how to use it, see the example Mktbls. Provided examples demonstrate various methods to open CODataSource objects. |