Article View: borland.public.cppbuilder.nativeapi
Article #16413Re: WriteFile problems (help me!)
From: Vladimir Afanasyev
Date: Thu, 15 May 2003 15:11
Date: Thu, 15 May 2003 15:11
27 lines
1951 bytes
1951 bytes
Hi, "MWP" <mwp@overclockers.com.au> wrote: > >I know that page has the title of Overlapped IO, but ive also seen other pages that sugest it occours also with non-overlapped IO. > >Either way, im still having the problem they describe. >WriteFile should always return... its as simple as that. For devices that work properly and good connect cables I never saw that WriteFile did not return result. It is still question how do you open port and MOST of ALL how do you fill DCB. Can you send this part of code? Can you call GetCommTimeouts before WriteFile and tell us about your timeouts? Do you sure that device work properly and cable is good? You can use my component: http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=16567 It should work for Win98/Me/NT4.0/2000/XP (excluding XP Home Edition of course). Vladimir.
Technical Details
Message-ID:
<3ec3ae38$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ec25f43$1@newsgroups.borland.com> <3ec26129$1@newsgroups.borland.com> <3ec26741$1@newsgroups.borland.com> <3ec26f1b$1@newsgroups.borland.com> <3ec288d7$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9ac30f5163521f9f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-05-15 08:15:31 PST From: "Vladimir Afanasyev" <avv@systema.kiev.ua> Sender: "Vladimir Afanasyev" <avv@systema.kiev.ua> Reply-To: "Vladimir Afanasyev" <avv@systema.kiev.ua> Subject: Re: WriteFile problems (help me!) Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 62.244.14.114 62.244.14.114 X-Forwarded-For: 192.168.0.147 References: <3ec25f43$1@newsgroups.borland.com> <3ec26129$1@newsgroups.borland.com> <3ec26741$1@newsgroups.borland.com> <3ec26f1b$1@newsgroups.borland.com> <3ec288d7$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3ec3ae38$1@newsgroups.borland.com> Date: 15 May 2003 08:11:52 -0700 X-Trace: newsgroups.borland.com 1053011512 207.105.83.65 (15 May 2003 08:11:52 -0700) Lines: 27 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail