Examples
Home Up Wrapped Interfaces Benefits Classes Reference Wrapped Interfaces Examples Comparison

 

OleRead
MkTbls
OleUpdate
OSchema
OLAP
OleDB25
Scroll
MkTblsEx
FastLoad
FilterSort
DataShape
FastAccess
Indexes
MultiRecords
MultiProcs
BLOBs

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.oocities.org/oledbpro/index.htm. We encourage you to visit the site for the latest examples.

  1. Beginning Level
    OleRead
    MkTbls
    OleUpdate
    Schema
    OLAP
    OleDB25
  2. Middle Level
    Scroll
    MultiProcs
    BLOBs
    FastAccess
    MultiRecords
    Indexes
    AsyNotify
    R2XML

  3. Advanced Level
    DataShape
    FilterSort
    MkTblsEx
    FastLoad