CTSession::Attach
Attaches an already initialized c-tree session to a c-treeDB session object.
Declaration
void CTSession::Attach(CTBOOL isTransactionActive = NO);
void CTSession::Attach(const CTString& ctreeid, CTBOOL isTransactionActive = NO);
void CTSession::Attach(const CTSession& Session);
Description
CTSession::Attach() attaches an already initialized c-tree ISAM or low-level session to a c-treeDB session object. Attached sessions have no information on server, user name or user password, and these values are set to NULL. Parameter.
Return
void
Example
// logon to c-tree using ISAM function
INTISAMX(10, 32, 32, 10, (USERPRF_NTKEY | USERPRF_CLRCHK));
// attach session to server handle
hSession->Attach(NO);
//
// ... do something useful ...
//
// detach from session
hSession->Detach();
// perform an ISAM logout
CLISAM();
See Also
CTSession::Detach()