Product Documentation

c-treeDB API for C++

Previous Topic

Next Topic

Init

First we need to open a connection to a database by providing the FairCom Database Engine with a user name, password and the database name.

Below is the code for Initialize():

//

// Initialize()

//

// Perform the minimum requirement of logging onto the c-tree Server

//

VOID Initialize(VOID)

{

printf("INIT\n");

try

{

// connect to server

printf("\tLogon to server...\n");

MySession.Logon("FAIRCOMS", "", "");

}

catch(CTException E)

{

Handle_Exception(E);

}

}

TOCIndex