UltraLite Static C++ User's Guide
C++ API Reference
ULConnection class
bool Open ( ULData* db,
ul_char* userid,
ul_char* password,
ul_char* name = SQLNULL )
Open a connection to a database. The ULData object must be open for this call to succeed.
db A pointer to the ULData object on which the connection is made. This argument is usually the address of the ULData object opened prior to making the connection.
userid The user ID argument is a placeholder reserved for possible future use. It is ignored.
For more information on user IDs and UltraLite, see User authentication.
password The password parameter is a placeholder reserved for possible future use. It is ignored.
name An optional name for the connection. This is needed only if you have multiple connections from a single application to the same database.
true (1) if successful.
false (0) if unsuccessful.
The following example opens a connection to the UltraLite database.
ULData db; ULConnection conn; db.Open(); conn.Open( &db, "dummy", "dummy" );