From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Magnus Hagander <mha(at)sollentuna(dot)net> |
Cc: | "'David Giffin'" <david(at)agent911(dot)com>, "Ken J(dot) Wright" <ken(at)ori-ind(dot)com>, pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: [INTERFACES] Win32 interface |
Date: | 1999-09-04 15:20:59 |
Message-ID: | 24150.936458459@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
Magnus Hagander <mha(at)sollentuna(dot)net> writes:
> The problem is that in the DllMain() of the libpq.dll file, WSAStartup() is
> called, and that is required before any winsock functions will work.
> If you link statically, you have to manually run WSAStartup.
>
> This should probably be documented :-)
Didn't we talk about having fe-connect.c call WSAStartup()
(conditionally compiled of course) to avoid this problem?
ISTM there was some reason it wouldn't work, like maybe you can
only call WSAStartup once per program, but I don't recall for sure.
If it *would* work it would probably be a better answer than making
users remember to call the thing.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Roland N Verrier | 1999-09-04 15:37:05 | Re: [INTERFACES] PGACCESS formdemo.sql |
Previous Message | Magnus Hagander | 1999-09-04 13:51:55 | RE: [INTERFACES] Win32 interface |