Re: Trying to use libpg intrface to postgresql in a windows application.
В списке pgsql-interfaces по дате отправления:
| От | jtv |
|---|---|
| Тема | Re: Trying to use libpg intrface to postgresql in a windows application. |
| Дата | |
| Msg-id | 20011124190040.K21073@xs4all.nl обсуждение |
| Ответ на | Trying to use libpg intrface to postgresql in a windows application. ("Σίμος Μαυροειδής" <simos@e-shop.gr>) |
| Список | 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
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера