Trying to use libpg intrface to postgresql in a windows application. - Mailing list pgsql-interfaces

From Σίμος Μαυροειδής
Subject Trying to use libpg intrface to postgresql in a windows application.
Date
Msg-id 002c01c1750c$3a66fd90$14b5a8c0@simos
Whole thread Raw
Responses Re: Trying to use libpg intrface to postgresql in a windows application.
List pgsql-interfaces
I use Visual C++ to develop a windows application that communicate using the libq library with a unix Postgresql server
.
I included the libpq-fe.h header file in my source and the libpq.a in the linker files. I try to implement the example
filesi found
 
in the documentation but they all result to an exception from the debuger at the command trying to connect to the dbase
server.ex
 
conn = PQsetdb(pghost, pgport, pgoptions, pgtty, dbName);

Could anyone give me one or two tips to get started with?

thx in advance.





pgsql-interfaces by date:

Previous
From: "Darko Prenosil"
Date:
Subject: Re: libpq debug
Next
From: Tom Lane
Date:
Subject: Re: libpq debug