Article View: borland.public.cppbuilder.internet.socket
Article #3992Re: TIdHTTP client in an NT Service
From: No-Spam
Date: Thu, 21 Apr 2005 21:59
Date: Thu, 21 Apr 2005 21:59
41 lines
2256 bytes
2256 bytes
Thanks ... i am not mixing any other components, just as a test i created a New Service application and just placed the IdHTTP Client component on there ... the errors were as noted. I did search deja.com and found a suggestion to use the define statement:- #ifndef _WINSOCKAPI_ // magic incantation to avoid windows calling in winsock.h #define _WINSOCKAPI_ #endif that seemed to work. Thanks again "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:42681a0b$1@newsgroups.borland.com... > > "No-Spam" <No-Spam@NoSpam.com> wrote in message > news:426815f6$1@newsgroups.borland.com... > > > I've update to indy 9.14, when adding a IdHTTP Client to > > the service, the compiler reports Multiple declaration errors. > > Indy uses WinSock v2.0. Most VCL socket components, including the ones that > ship with BCB, still use WinSock v1.x instead. The headers for the two are > not compatible with each other. winsock2.h disabled winsock.h if winsock2.h > gets included by the preprocessor first, but if winsock.h is included first > then all hell breaks loos. Don't mix other socket components with Indy. If > you do a search in the newsgroup archives at http://www.deja.com , you will > see this issue discussed many times before. > > > Gambit > >
Technical Details
Message-ID:
<4268226c@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<426815f6$1@newsgroups.borland.com> <42681a0b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,39fb71ce3abe6dd2 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "No-Spam" <No-Spam@NoSpam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <426815f6$1@newsgroups.borland.com> <42681a0b$1@newsgroups.borland.com> Subject: Re: TIdHTTP client in an NT Service Date: Thu, 21 Apr 2005 14:59:15 -0700 Lines: 43 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-eShield-AntiVirus: Passed X-eShield-AntiVirus-Message: Scanned by http://www.bluecoat.com/eShield NNTP-Posting-Host: 199.217.93.5 Message-ID: <4268226c@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1114120812 199.217.93.5 (21 Apr 2005 15:00:12 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail