From: | Magnus Hagander <mha(at)sollentuna(dot)net> |
---|---|
To: | "'Finn Kettner'" <fk(at)akf(dot)dk>, pgsql-hackers(at)postgresql(dot)org |
Subject: | RE: libpq.dll and VB |
Date: | 2000-08-24 14:51:28 |
Message-ID: | 215896B6B5E1CF11BC5600805FFEA82103D97C9E@sirius.edu.sollentuna.se |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Finn Kettner | 2000-08-24 15:09:54 | libpq.dll and VB |
Previous Message | Tom Lane | 2000-08-24 14:22:38 | Re: [7.0.2] problems with spinlock under FreeBSD? |