Article View: borland.public.cppbuilder.nativeapi
Article #15546Re: Handling Com Port error
From: Bob Gonder
Date: Tue, 24 Jun 2003 19:26
Date: Tue, 24 Jun 2003 19:26
17 lines
1496 bytes
1496 bytes
"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:
<d99hfvgk39p3pb064q1qtssddpvm0tu5rs@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ef87b08@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,3260389474eb6b2e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-06-24 12:43:37 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Handling Com Port error Date: Tue, 24 Jun 2003 12:26:35 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <d99hfvgk39p3pb064q1qtssddpvm0tu5rs@4ax.com> References: <3ef87b08@newsgroups.borland.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.164.91 X-Trace: newsgroups.borland.com 1056482792 67.31.164.91 (24 Jun 2003 12:26:32 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail