Re: CSK/ICONNECT
Posted in 1999
Dear Golovsky Vadim, does this mean I have to write my own "ICONNECT"? On HP-UX I have the application which should use the database and ICONNECT which does the connetion "between" the application and the database. regards, Wolfgang Golovsky Vadim wrote: > > Ok!!! > > 1) Setting environment variables informix (DB_LOACLE, CLIENT_LOCALE, > INFORMIXDIR, > DBLANG, INFORMIXSERVER, INFORMIXSQLHOSTS ... )!!! > > 2) See the CPPDOC.TXT for more information (Release->04e4->CPPDOC.TXT > ->:ACCESSING SMART LARGE OBJECTS IN NONDEFAULT SBSPACES): > > main(int argc, const char *argv[]) > { > ITDBInfo dbinfo; > ITConnection conn; > ... > ... > ... > cout << " INFORMIXSERVER : "; > cin.getline(buf, sizeof(buf)); > if (!dbinfo.SetSystem(buf)){ <---- Attention !!! > cout << "Could not set system " << endl; > return (1); > } > cout << " DATABASE : "; > cin.getline(buf, sizeof(buf)); > if (!dbinfo.SetDatabase(buf)){ <---- Attention !!! > cout << "Could not set database " << endl; > return (1); > } > cout << " USER : "; > cin.getline(buf, sizeof(buf)); > if (!dbinfo.SetUser(buf)){ <---- Attention !!! > cout << "Could not set user " << endl; > return (1); > } > cout << " PASSWORD : "; > cin.getline(buf, sizeof(buf)); > if (!dbinfo.SetPassword(buf)){ <---- Attention !!! > cout << "Could not set password " << endl; > return (1); > } > if (!conn.Open(dbinfo) || conn.Error()) { > if (!conn.Open() || conn.Error()) { > cout << "Could not open database " << endl; > return (1); > } > > ... > ... > > cout << "Start Transaction ..." << endl; > if (!conn.SetTransaction(ITConnection::Begin)) { > cout << "Could not start transaction " << endl; > return (1); > } > > ... > > } > > ================================== > Vadim Golovsky, gvf@entel.kiev.ua > Tel:(38044) 277-8528, 245-7525 > Fax:(38044) 245-7714 > Chief Specialist EnranTelecom > Ukraine, Kiev, 27 Klimenko str. -- Wolfgang Schlueschen, mailto:Wolfgang.Schlueschen@hamburg.sc.philips.com Phone: +49-40-5613-3164 -- Fax: +49-40-5613-3316 - Seri: schlue:de61cte3 ITS TPE/PC-Peripherals, Philips RHW, Stresemannallee 101,D-22529 Hamburg