🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Split file.

#17051
From: Phil V
Date: Fri, 11 Apr 2003 13:06
18 lines
1729 bytes
As well as Remy's comment about using the wrong operator in the or '|'
instead of '||' I believe you are also using the wrong comparison operator,
you have b = hBytes, which means that you are setting b to be hBytes,
whereas I think you mean b == hBytes, which means, 'does b equate to
hBytes?'

Phil

"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3e91b462$1@newsgroups.borland.com...
>
> "Safari" <Safari@alloymail.com> wrote in message
> news:3E91A68B.8000503@alloymail.com...
>
<SNIP>
> >           while ((b = hBytes) | (b > hSource->Size));
>
> You're using the wrong operator in there.  You should be using ||, not |.
Technical Details
Message-ID: <3e96be00$1@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!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3E8F1D05.40008@alloymail.com> <3e8f69e0@newsgroups.borland.com> <3E91A68B.8000503@alloymail.com> <3e91b462$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,8f5102c5a422c5bb
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-11 06:13:46 PST
From: "Phil V" <pvalentine_REMOVE_THIS_@_REMOVE_THIS_continental-microwave.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3E8F1D05.40008@alloymail.com> <3e8f69e0@newsgroups.borland.com> <3E91A68B.8000503@alloymail.com> <3e91b462$1@newsgroups.borland.com>
Subject: Re: Split file.
Date: Fri, 11 Apr 2003 14:06:10 +0100
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 212.159.105.214
Message-ID: <3e96be00$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050066432 212.159.105.214 (11 Apr 2003 06:07:12 -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!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail