Thread: why it is impossible to connect to the data base?

why it is impossible to connect to the data base?

From
BELEM Mahamadou
Date:
Dear all

I tried to connect my data base using a C++ program.

I use the following instructions  but it is impossible to make the connection.
Can someone explain me the problem.

 PGconn *conn;
 conn = PQsetdbLogin("localhost",
                     NULL,
                     NULL,
                     NULL,
                     "database",
                     "user",
                     "password");

Best regards



Envoyé avec Yahoo! Mail.
Une boite mail plus intelligente.