🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: indy 9.00.15 Winsock.h vs. Winsock2.h TROUBLE

#4969
From: Frank
Date: Tue, 23 Nov 2004 07:52
63 lines
3915 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> schrieb im Newsbeitrag
news:41a22a04$1@newsgroups.borland.com...
>
> "Frank" <frank.hofmann@stahlwerk-thueringen.de> wrote in message
> news:41a1d512$1@newsgroups.borland.com...
>
> > There's an include error between winsock.h of bcb
> > and winsock2.h which comes with the indy package...
>
> winsock2.h does not ship with Indy.  It ships with BCB, as does winsock.h.
> They are both Microsoft headers, not Borland headers, and Microsoft did
not
> make the two headers compatible with each other.  Most Internet
components,
> particular those that ship with BCB by default, still use WinSock v1.x and
> thus winsock.h.  Indy, on the other hand, uses WinSock 2.x and thus
> winsock2.h instead.  The two do not co-exist in the same project very
well.
> Blame Microsoft, not Borland or Indy.  Are you trying to use other
> Internet-related components in your project in addition to Indy?  If so,
> why?


I found 12 obj-files of my project that consists the entry "winsock.h", i
don't know why. Most of them use the "system.hpp".
I don't know the components that includes the winsock1. I use Quickreport,
ODAC (Oracle Direct Access from crlab.com) and some other standard
components.
Maybe it's caused by including mapi.h, but i deleted that include.
I also tried to send my Mail by functions of that library, but this does not
work. (MAPISendMail is called, but no effect... [standard mailer is
correctly configured] )


> > I tried to define _WINSOCK_ in the cpp of my projectfile to
> > prevent the include of winsock.h but it seems that the compiler
> > includes the file before that #define statement...
>
> The best place to make such a define is in the Prohect Options instead.
> However, making such a define effects winsock2.h as well, so I do not
advise
> you to go that route in the first place.

If i would like to do that, how is that to be done?


> Please go to http://www.deja.com and search through the newsgroup
archives.
> This issue has been discussed many many times before.
>
> > With newer Versions of Indy the Installtion fails on my
> > system. (install okay, can't use components)

> Please provide more details.

I'm working on an restriced account (win2k system, bcb 6) and tried to
install 9.0.17 and 9.0.18 under administrator rights, I was not able to do
that in a fast way, because of trouble with pascal units. (not familliar
with that, Indy - team should write that existing project need the indy.bpi
before they do the advice to delete all existing indy files, which is
written in the online install notes) Only with 9.0.15 i was able to see the
components and create projects in use of them.
Technical Details
Message-ID: <41a2ec25$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41a1d512$1@newsgroups.borland.com> <41a22a04$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f39eb52eec8e73c6
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Frank" <frank.hofmann@stahlwerk-thueringen.de>
From: "Frank" <frank.hofmann@stahlwerk-thueringen.de>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41a1d512$1@newsgroups.borland.com> <41a22a04$1@newsgroups.borland.com>
Subject: Re: indy 9.00.15 Winsock.h vs. Winsock2.h TROUBLE 
Date: Tue, 23 Nov 2004 08:52:00 +0100
Lines: 65
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 195.124.129.3
Message-ID: <41a2ec25$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1101196325 195.124.129.3 (22 Nov 2004 23:52:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail