C++ connect problems
Posted in 2000
Milos Prudek — — source: Informix-list mailing list archive (1991-1998)
A very simple example compiles but fails to connect: ---------------------------- cut ---------------------- #include <iostream.h> #include <it.h> #include <string.h> int main(int argc, char *argv[]) { ITConnection conn; //definuje objekt pro tento connection ITDBInfo amis("bv_ids_tcp","someuser","hp.domain.foo","somepassword"); if ( !conn.Open(amis) ) { cout << "Failed to connect to the database!" << endl; return -1; }; } ---------------------------- cut ----------------------- My ESQL/C programs connect fine... I believe it's something about Object Interface that I use improperly... -- Milos Prudek