RE: [HACKERS] LIBPQ for WIN32

From: "Hiroshi Inoue" <Inoue(at)tpf(dot)co(dot)jp>
To: "Vince Vielhaber" <vev(at)michvhf(dot)com>
Cc: "pgsql-hackers" <pgsql-hackers(at)postgreSQL(dot)org>, "Magnus Hagander" <mha(at)edu(dot)sollentuna(dot)se>
Subject: RE: [HACKERS] LIBPQ for WIN32
Date: 1998-09-29 01:46:34
Message-ID: 000701bdeb4a$fd67fdc0$2801007e@cadzone.tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> On 28-Sep-98 Hiroshi Inoue wrote:
> > I think that current DLL supports version 1.0,1.1,2.0,2.1 and 2.2 and we
> > can
> > specify any version from 1.0 to 2.2 .
> > For example,if we call WSAStartup(MAKEWORD(1.0),&wsaData) from libpq
> > and call WSAStartup(MAKEWORD(2,2),&wsaData) from psql,both return OK
> > and wsaData.wVersion is 1.0 for libpq and 2.2 for psql.
>
> Whichever is done, try not to ever request a version higher than what is
> required. It forces upgrades that may not even be necessary. It's been
> awhile since I've done windows code, but I've been bitten by requiring a
> higher version of a library than necessary - more than once without even
> realising it. It's not very fun when it comes time to fix it.
>

How about my sample code at the end of my previous post.
In that code,libpq does nothing if main application calls WSAStartup().

Hiroshi Inoue
inoue(at)tpf(dot)co(dot)jp

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Bruccoleri 1998-09-29 03:32:23 SGI Port of Postgresql 6.4 snapshot of 09/28/98
Previous Message Vince Vielhaber 1998-09-29 00:28:05 RE: [HACKERS] LIBPQ for WIN32