RE: libpq.dll and VB

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема RE: libpq.dll and VB
Дата
Msg-id 215896B6B5E1CF11BC5600805FFEA82103D97C9E@sirius.edu.sollentuna.se
обсуждение исходный текст
Ответ на libpq.dll and VB  ("Finn Kettner" <fk@akf.dk>)
Ответы RE: libpq.dll and VB  ("Finn Kettner" <fk@akf.dk>)
Список pgsql-hackers
> Hello.
> 
> Has anybody got any experience using libpq.dll from Visual Basic
> (currently using Visual Studio 6), and if so, do you have the
> declarations handy. I have a little trouble finding out how the PGconn
> and PGresult should look like, and as far as I know these are required
> to use the connect and execute functions in the library.
> 
> Yours faithfully.
> Finn Kettner.
> PS. If anybody know a program to automatically extract informations
> from a dll and create a api.txt file for Visual Basic, then please let
> me know.

I don't know exactly which format VB expects, but you can get a list of
exports from the DLL using:
dumpbin /exports libpq.dll

If you also need the function definitions, check libpq-fe.h for C style
syntax. (It's in src/interfaces/libpq)

As a sidenote, you may be much better off using ADO with the ODBC driver -
it's definitly move VB-friendly.

//Magnus


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [7.0.2] problems with spinlock under FreeBSD?
Следующее
От: Tim Perdue
Дата:
Сообщение: Re: Interesting new bug?