From: | Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp> |
---|---|
To: | Finn Kettner <fk(at)akf(dot)dk> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: libpq static link library dowsn't work (M$ VS6) |
Date: | 2000-09-27 07:23:19 |
Message-ID: | 39D1A066.BCB1D20B@tpf.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Finn Kettner wrote:
> Hello again.
>
> I'm in the process of making a COM wrapper (enabling VB to connect to
> PostGres) for the libpq library using Visual Studio 6.0 Pro, but have
> a few problems. I can make use of the libpq.dll library from the COM
> wrapper, but I thought that it might be a bit better if the actual
> library routines was included in the COM wrapper, and thus making the
> libpq.dll unnedded.
>
> But if I include all the files that make up the library, then I can't
> get a connection. I even tried to make a small test file which works
> ok when using the dll, but doesn't when I include the actual .c files
> which make up the dll and static link library (.lib). Linking with the
> static link library that comes with the dll file doesn't work either.
> This little program is what I've used. Has anybody succedded in lnking
> an application with the static link library (libpq.lib) and actually
> getting a working application??? If so then I'm very interested in
> getting any help.
>
libpq.dll calls WSAStartup() in dllmain() which is never
called from static library. Probably you had better
call WSAStartup() from upper level application.
Regards.
Hiroshi Inoue
From | Date | Subject | |
---|---|---|---|
Next Message | Magnus Hagander | 2000-09-27 07:31:00 | RE: libpq static link library dowsn't work (M$ VS6) |
Previous Message | Louis-David Mitterrand | 2000-09-27 06:53:58 | function crashes backend |