> 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