🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: BCB6 and winsock2.h

#16104
From: Simon Elliott
Date: Fri, 30 May 2003 10:11
20 lines
1450 bytes
>
>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

-- 
Simon Elliott
http://www.ctsn.co.uk/
Technical Details
Message-ID: <72Eb4DA$4y1+IwUW@courtlands.demon.co.uk>
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!courtlands.demon.co.uk!simon
References: <yFSpUCAkxx1+IwGN@courtlands.demon.co.uk> <wW2ZQDA1zy1+Iw25@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
Message-ID: <72Eb4DA$4y1+IwUW@courtlands.demon.co.uk>
Date: Fri, 30 May 2003 11:11:11 +0100
From: Simon Elliott <simon@nospam.demon.co.uk>
Reply-To: Simon Elliott <news@courtlands.demon.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: BCB6 and winsock2.h
References: <yFSpUCAkxx1+IwGN@courtlands.demon.co.uk>
 <wW2ZQDA1zy1+Iw25@courtlands.demon.co.uk>
Lines: 26
Organization: Courtlands Technical Services
MIME-Version: 1.0
X-Newsreader: Turnpike Integrated Version 4.02 U <aLIvuQCpEWZ0Tu7eytpxRhrSSE>
NNTP-Posting-Host: 158.152.154.121
X-Trace: newsgroups.borland.com 1054289659 158.152.154.121 (30 May 2003 03:14:19 -0700)
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!courtlands.demon.co.uk!simon