🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3120

Re: Indy 9: winsock2.h and winsock.h conflict resolution

#3120
From: Remy Lebeau (TeamB)
Date: Mon, 21 Nov 2005 23:45
25 lines
1985 bytes
"Daniel Stevenson" <daniel@ocreage.com.au> wrote in message
news:43824b20$1@newsgroups.borland.com...

> I therefore had to include "#include <winsock2.h>" before my
> "#include <vcl.h>" which now leaves me with quite a number of
> warnings about "[C++ warning] _prolog.h(41): W8059 Structure
> packaging size has changed size"

That has nothing to do with winsock.h or winsock2.h.  That warning is a side
effect of Borland changing to a different STL library in BCB 6.  The warning
is safe to ignore.

> According to my research, the windows.h calls upon windows.h
> which in turn calls upon winsock.h and therefore the only way to
> stop the errors that are generated is by including winsock2.h prior
> to vcl.h.  But if I can compile a form that is directly using the indy
> components without first including winsock2.h, how does this not
> cause a problem with winsock.h?

If winsock2.h gets included into the precompiler before winsock.h, then
winsock2.h disables winsock.h automatically.


Gambit
Technical Details
Message-ID: <43825bf0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43824b20$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6c4df013894db185
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <43824b20$1@newsgroups.borland.com>
Subject: Re: Indy 9: winsock2.h and winsock.h conflict resolution
Date: Mon, 21 Nov 2005 15:45:08 -0800
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <43825bf0$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1132616688 68.69.17.41 (21 Nov 2005 15:44:48 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail