🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#3053
From: Remy Lebeau (TeamB)
Date: Tue, 29 Nov 2005 10:00
27 lines
2074 bytes
"Daniel Stevenson" <daniel@ocreage.com.au> wrote in message
news:438bd29a@newsgroups.borland.com...

> Not trying to be picky, but if #include <vcl.h> is always the first
> include in any form, and if vcl.h calls upon winsock.h (indirectly)
> then wouldn't that mean that winsock.h will always be included
> in the precompiler first?

You can include winsock2.h before vcl.h manually.  And let's not forget that
vcl.h itself is not a real header file in the first place, but a placeholder
that the precompiler substitutes with another header based on the Project
features being used.

> I think I'm trying to confirm whether my first assumption is
> correct that vcl.h is in fact calling upon winsock.h?

vcl.h itself is not, no.  What does, however, is windows.h and winsock.hpp.

> I just don't like having to include a mandatory #include <winsock2.h>
> on all forms even though I'm not using any internet components.

Try using precompiled headers.  Then you wouldn't include either one in your
forms, but would include your own custom header instead.


Gambit
Technical Details
Message-ID: <438c282d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <43824b20$1@newsgroups.borland.com> <43825bf0$1@newsgroups.borland.com> <438bd29a@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> <43825bf0$1@newsgroups.borland.com> <438bd29a@newsgroups.borland.com>
Subject: Re: Indy 9: winsock2.h and winsock.h conflict resolution
Date: Tue, 29 Nov 2005 02:00:48 -0800
Lines: 29
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: <438c282d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1133258797 68.69.17.41 (29 Nov 2005 02:06:37 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail