🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #33

Re: mswsock.h & iosfwd prevent BCB6 project compiling using BCB 2007

#33
From: dhoke
Date: Tue, 08 Jan 2008 13:29
40 lines
2441 bytes
Do you have a macro "INT" defined somewhere in any of your stuff, possibly 
trying to round/truncate a value?

(Maybe with a definition something like:
"#define INT(x) (int((x)+((x)<0 ? -1 : 1)*0.5)"
)

"Tom Byars" <tam118118@hotmail.com> wrote in message 
news:477be405$1@newsgroups.borland.com...
>> (int((__stdcall  * LPFN_WSARECVMSG)+((__stdcall  * LPFN_WSARECVMSG)<0 
>> ? -1
>>> : 1)*0.5))) (
>>
>> What is all that?
>
> typedef
> (int((__stdcall  * LPFN_WSARECVMSG)+((__stdcall  * LPFN_WSARECVMSG)<0 ? -1 
> :
> 1)*0.5))) (
> SOCKET s,
> LPWSAMSG lpMsg,
> LPDWORD lpdwNumberOfBytesRecvd,
> LPWSAOVERLAPPED lpOverlapped,
> LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
> );
>
> is what appears in the preprocessed file in place of
>
> typedef
> INT
> (PASCAL FAR * LPFN_WSARECVMSG) (
>    IN SOCKET s,
>    IN OUT LPWSAMSG lpMsg,
>    __out_opt LPDWORD lpdwNumberOfBytesRecvd,
>    IN LPWSAOVERLAPPED lpOverlapped,
>    IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine
>    );
>
>
> 
Technical Details
Message-ID: <47837a42$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4773c52b@newsgroups.borland.com> <4773ebc6@newsgroups.borland.com> <4774d59f$1@newsgroups.borland.com> <47753961@newsgroups.borland.com> <477546fd@newsgroups.borland.com> <477551c2$1@newsgroups.borland.com> <477577ea$1@newsgroups.borland.com> <477626c9@newsgroups.borland.com> <47763514@newsgroups.borland.com> <477bcfaa$1@newsgroups.borland.com> <477be405$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,deb4629ff779f0b0
X-Google-Attributes: gid10529a,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "dhoke" <dhoke.nojunk@east-shore.com>
From: "dhoke" <dhoke.nojunk@east-shore.com>
Newsgroups: borland.public.cppbuilder.upgrade
References: <4773c52b@newsgroups.borland.com> <4773ebc6@newsgroups.borland.com> <4774d59f$1@newsgroups.borland.com> <47753961@newsgroups.borland.com> <477546fd@newsgroups.borland.com> <477551c2$1@newsgroups.borland.com> <477577ea$1@newsgroups.borland.com> <477626c9@newsgroups.borland.com> <47763514@newsgroups.borland.com> <477bcfaa$1@newsgroups.borland.com> <477be405$1@newsgroups.borland.com>
Subject: Re: mswsock.h & iosfwd prevent BCB6 project compiling using BCB 2007
Date: Tue, 8 Jan 2008 08:29:26 -0500
Lines: 42
Organization: East Shore Technologies, Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 72.92.186.89
Message-ID: <47837a42$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1199798850 72.92.186.89 (8 Jan 2008 05:27:30 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail