Examples of Opening a Database
Here are two examples of opening a database.
Example 1 – Opening a specific database
Notice that the accessLib is defined as POSTGRESQL, indicating that the application will use the static version of the access library and must be linked with it:
 
RWDBDatabase aDB = RWDBManager::database ("POSTGRESQL",
"myHost", "cratchitt","scrooge", "SALES");
Example 2 – Opening a database from a Windows application
The second example shows opening the same database from a Windows application. In this case, the accessLib is defined as pgs<ver>15d.dll, indicating that the application will dynamically load the Access Module at runtime:
 
RWDBDatabase aDB = RWDBManager::database ("pgs<ver>15d.dll",
"INHOUSE", "cratchitt", "scrooge", "SALES");