Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

2.2 Databases and Connections

In order for a DBTools.h++ application to interact with a database, an RWDBDatabase instance must be created by calling:

All arguments are of type RWCString. For Oracle, you must provide the following:

Here are two examples of opening a database on an Oracle service. Notice that both require a user name and password to provide the highest level of security. In the first example, the accessLib is defined as ORACLE, indicating that the application must be linked with the static version of the access library:

The second example shows how to open the same database from a Windows application. In this case, the accessLib is defined as ora7d.dll, which indicates that the application will dynamically load the access library at runtime:


Previous fileTop of DocumentContentsIndexNext file

©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.