Examples Provided with OleDBPro
At this time, eighteen completed examples are available with this module and divided into three levels, beginning, middle and advanced. All the examples demonstrate building a connection to a data source, opening a COSession or COSessionEx object and tracking error messages. Most examples are created on MS Access for easy demonstration purposes. A few of them can only be tested on Oracle, MS SQL Server or Internet Information Server. There are detailed comments for each of samples. It's highly recommended that you read and think through these comments.
To test these examples fully, you need to move two versions of dlls OleDB25D.dll (debug) and OleDB25R.dll (release) into your window system directory after installing OleDBPro if you use Visual C++, and OleDBPBD.dll (debug) and OleDBPBR.dll (release) if you use Borland C++ Builder. Because the module is written for supporting OLEDB specification of version 2.6, you may need to get both the latest platform SDK and MDAC from Microsoft. Your development should also include the the directories of the OleDBPro header and lib files. Here is a detailed instruction to tell you how to use OleDBPro with Visual C++ or C++ Builder.
Each of examples is designed to be focused on a set of specific functions, use of services, performance or solution of real problems. Here is a list of examples. For details of each of examples, click it and see if you can modify it to solve your problems.
More examples will be posted at the web site: http://www.reocities.com/oledbpro/index.htm. We encourage you to visit the site for the latest examples.