Init
First we need to open a connection to a database by providing the c-treeACE Database Engine with a user name, password and the database name. Below is the code for Initialize(): //--------------------------------------------------------------------------- void TForm1::Initialize() {
try {
CtSession1->Active = true; CtDatabase1->Database = "tutorial"; CtDatabase1->Active = true; } catch (ECtError &E) {
Application->ShowException(&E); } } |
|||