Connections to data sources in C/C++ applications using the IBM OLE DB Provider
To connect to a Db2® data source with the
IBM® OLE DB provider (IBMDADB2) in a C/C++ application, you can
use the IDBPromptInitialize or IDataInitialize interface. If
you do not want to use the interfaces, you can call the CoCreateInstance API
(COM).
The IDataInitialize interface is exposed by the OLE DB Service Component, and the IDBPromptInitialize is exposed by the Data Links Component.