From: | jtv <jtv(at)xs4all(dot)nl> |
---|---|
To: | Simo* Mauroeidy* <simos(at)e-shop(dot)gr> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: Trying to use libpg intrface to postgresql in a windows application. |
Date: | 2001-11-24 18:00:40 |
Message-ID: | 20011124190040.K21073@xs4all.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
On Sat, Nov 24, 2001 at 07:19:52PM +0200, Simo* Mauroeidy* wrote:
> 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 files i 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?
I don't think you're supposed to include libpq-fe.h. Try postgresql/libpq++.h
instead.
Or better yet, take a look at my new C++ frontend (not very well-documented
yet, but the examples should show it pretty clearly):
http://members.ams.chello.nl/j.vermeulen31/
--
Jeroen
From | Date | Subject | |
---|---|---|---|
Next Message | Edward Pilipczuk | 2001-11-24 18:26:33 | ECPG error on inserting records to DB |
Previous Message | Tom Lane | 2001-11-24 17:52:27 | Re: libpq debug |