Article View: borland.public.cppbuilder.nativeapi
Article #10626Re: rs232 under XP
From: Michel Leunen
Date: Thu, 01 Apr 2004 12:49
Date: Thu, 01 Apr 2004 12:49
19 lines
1915 bytes
1915 bytes
Martin wrote: > Meanwhile I found a part in the MS SDK where it says that reading and > writing to the same handle is only possible with overlap. Where did you read that? AFAIK, that's not true. I have just finished an application which talk to a �P card using RS232. It uses the same handle provided by CreateFile() for reading and writing. The reading part is placed in its own thread and I just pass the handle to the thread on creation. It works like a charm on XP and NT4 at least. Michel -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, C++BuilderX, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Technical Details
Message-ID:
<406c0fcd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40693a3f@newsgroups.borland.com> <4069a26a@newsgroups.borland.com> <4069c1f9$1@newsgroups.borland.com> <406a964f$1@newsgroups.borland.com> <406b782e$1@newsgroups.borland.com> <406be6c2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,8913094e963c267d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-04-01 05:10:14 PST Date: Thu, 01 Apr 2004 14:49:17 +0200 From: Michel Leunen <mleu@STOPSPAMskynet.be> Organization: www.leunen.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: rs232 under XP References: <40693a3f@newsgroups.borland.com> <4069a26a@newsgroups.borland.com> <4069c1f9$1@newsgroups.borland.com> <406a964f$1@newsgroups.borland.com> <406b782e$1@newsgroups.borland.com> <406be6c2$1@newsgroups.borland.com> In-Reply-To: <406be6c2$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 81.240.69.218 Message-ID: <406c0fcd$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1080823757 81.240.69.218 (1 Apr 2004 04:49:17 -0800) Lines: 19 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail