RE: libpq.dll and VB - Mailing list pgsql-hackers

From Magnus Hagander
Subject RE: libpq.dll and VB
Date
Msg-id 215896B6B5E1CF11BC5600805FFEA82103D97C9E@sirius.edu.sollentuna.se
Whole thread Raw
In response to libpq.dll and VB  ("Finn Kettner" <fk@akf.dk>)
Responses RE: libpq.dll and VB
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [7.0.2] problems with spinlock under FreeBSD?
Next
From: Tim Perdue
Date:
Subject: Re: Interesting new bug?