🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Indy and WinSock2.h problem

#4453
From: Remy Lebeau (TeamB)
Date: Tue, 08 Feb 2005 19:09
20 lines
1727 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:t51i01puq1d6d5v5h92h300b7d3eni27tm@4ax.com...

> Would it cause run-time conflicts if he used the 2
> winsocks in different modules?

It would cause compile-time conflicts.  #define statements are global in
nature.  winsock2.h disables winsock.h via a #define, so if one module
includes winsock2.h first, the other module will likely fail to compile
since winsock.h will be disabled from declaring anything that the module is
using.

> Write Indy code in one, and Winsock code in another?

The only reliable way I know to do that is to put each module into its own
separate DLL.


Gambit
Technical Details
Message-ID: <42090d9d@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!80.239.136.22.MISMATCH!tsicnews.teliasonera.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4208eb0f@newsgroups.borland.com> <4208f629$1@newsgroups.borland.com> <t51i01puq1d6d5v5h92h300b7d3eni27tm@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,107c7f042cb7cb6a
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: <4208eb0f@newsgroups.borland.com> <4208f629$1@newsgroups.borland.com> <t51i01puq1d6d5v5h92h300b7d3eni27tm@4ax.com>
Subject: Re: Indy and WinSock2.h problem
Date: Tue, 8 Feb 2005 11:09:25 -0800
Lines: 22
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: <42090d9d@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1107889565 68.69.17.41 (8 Feb 2005 11:06:05 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!80.239.136.22.MISMATCH!tsicnews.teliasonera.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail