Article View: borland.public.cppbuilder.nativeapi
Article #3476Re: Comm Port kicking my butt
From: Michel Leunen
Date: Sat, 17 Jun 2006 18:59
Date: Sat, 17 Jun 2006 18:59
21 lines
1574 bytes
1574 bytes
JD wrote:
> The write seems to work because no errors are reported and the
> number of bytes written are correct. The read, OTOH reports
> nada - no errors and no data.
> char Buffer[ 101 ] = { 0 };
> if( ! ::ReadFile(hCom, &Buffer, 100, &nBytes, NULL) )
if( ! ::ReadFile(hCom, Buffer, 100, &nBytes, NULL) )
or
if( ! ::ReadFile(hCom, &Buffer[0], 100, &nBytes, NULL) )
Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Technical Details
Message-ID:
<449450ef$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!newsfeed.kamp.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44944ca9$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5117e51131b9ac21 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 17 Jun 2006 20:59:18 +0200 From: Michel Leunen <nospam@noreply.please> Organization: www.leunen.com User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Comm Port kicking my butt References: <44944ca9$1@newsgroups.borland.com> In-Reply-To: <44944ca9$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 81.247.69.93 Message-ID: <449450ef$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1150570735 81.247.69.93 (17 Jun 2006 11:58:55 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed.kamp.net!newsfeed.kamp.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail