🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16103

Re: BCB6 and winsock2.h

#16103
From: Russell Hind
Date: Fri, 30 May 2003 10:20
29 lines
1954 bytes
I saw this when compiling one of our projects on both BCB5 and BCB6.  I 
took the section of the BCB5 header that worked, and pasted it into the 
BCB6 header and that fixed it for us (including all the #ifdefs). 
Because I was only experimenting with BCB6 at the time, we kept our 
project in BCB5 and I never reported this as a bug.  It would be worth 
submitting this to quality central.

Cheers

Russell

Simon Elliott wrote:
>>This works in BCB6 but alas doesn't work in BCB3:
>>
>>#include <winsock2.h>
>>#define _WINSOCK2API_
>>#define _WINSOCKAPI_ 
>>
> 
> 
> This seems to work on both BCB3 and BCB6. Is there any downside to this?
> Can anyone improve on it?
> 
> #define _WINSOCKAPI_
> #include <windows.h>
> #ifndef _WINSOCK2API_
> #include <winsock2.h>
> #endif
> 
Technical Details
Message-ID: <3ed7308e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <yFSpUCAkxx1+IwGN@courtlands.demon.co.uk> <wW2ZQDA1zy1+Iw25@courtlands.demon.co.uk> <72Eb4DA$4y1+IwUW@courtlands.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,3fc5d067239e5bbf
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-30 03:26:01 PST
Date: Fri, 30 May 2003 11:20:18 +0100
From: Russell Hind <rhind@mac.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3.1) Gecko/20030425
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: BCB6 and winsock2.h
References: <yFSpUCAkxx1+IwGN@courtlands.demon.co.uk> <wW2ZQDA1zy1+Iw25@courtlands.demon.co.uk> <72Eb4DA$4y1+IwUW@courtlands.demon.co.uk>
In-Reply-To: <72Eb4DA$4y1+IwUW@courtlands.demon.co.uk>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 212.240.15.125
Message-ID: <3ed7308e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054290062 212.240.15.125 (30 May 2003 03:21:02 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail