๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Handling Com Port error

#15548
From: david
Date: Tue, 24 Jun 2003 21:00
30 lines
1796 bytes
sorry, I  put hCom inside of the fuinction, but really  the hCom handler is
into the private section object.






"Bob Gonder" <notbg@notmindspring.invalid> escribi๏ฟฝ en el mensaje
news:d99hfvgk39p3pb064q1qtssddpvm0tu5rs@4ax.com...
> "david" <dmarquezl@hotmail.com> wrote:
> >
> >bool TCom::ReciveBin( unsigned char *argAStr_Data, unsigned long
> >argul_BytesWait , unsigned long &argul_BytesReturned)
> >{
> >  ReadFile ( hCom, argAStr_Data, argul_BytesWait ,
&argul_BytesReturned,NULL );
> >}
>
> >bool TCom::OpenPortDefault()
> >{
> >    HANDLE       hCom;
> >  hCom = CreateFile( gAStr_PuertoCom.c_str(),
> >}
>
> hCom is local to OpenPortDefault.
> It is not available to ReciveBin.
> I'm surprised this compiles.
>
>
Technical Details
Message-ID: <3ef8ba4b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3ef87b08@newsgroups.borland.com> <d99hfvgk39p3pb064q1qtssddpvm0tu5rs@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,3260389474eb6b2e
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-24 14:04:05 PST
From: "david" <dmarquezl@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ef87b08@newsgroups.borland.com> <d99hfvgk39p3pb064q1qtssddpvm0tu5rs@4ax.com>
Subject: Re: Handling Com Port error
Date: Tue, 24 Jun 2003 17:00:20 -0400
Lines: 32
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: 200.50.121.180
Message-ID: <3ef8ba4b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1056488011 200.50.121.180 (24 Jun 2003 13:53:31 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail