 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Henk van Winkoop Guest
|
Posted: Mon Dec 05, 2005 9:12 pm Post subject: Comport receiving |
|
|
Hello,
I created an application to read the incoming data on a comport.
The comport communication is initiated by the
'MyFileHandler=CreateFile(....)' function.
Overlapped mode is used.
It all seems to work fine, but, if 0x00 characters are received they are NOT
detected by my application. The 'WaitForMultipleObjects' function does
not initiate an event.
The GetFileType(MyFileHandler) returns FILE_TYPE_CHAR.
Does this mean that by definition 0x00 charaters can not be handled because
they act as an END-OF-STRING character?
Anybody has any experience or idea?
Thanks
Henk
|
|
| Back to top |
|
 |
Henk van Winkoop Guest
|
Posted: Mon Dec 05, 2005 9:36 pm Post subject: Re: Comport receiving |
|
|
Well let me answer myself.
After many hours and searching the web I found out it was my fault
I had set the DeviceControlBlock.fNull bit to '1' so 0x00 characters where
ignored.
euhhh...... ;-)
Anyway, thanks for listening.
"Henk van Winkoop" <h.van.winkoop (AT) wxs (DOT) nl> schreef in bericht
news:4394ad23 (AT) newsgroups (DOT) borland.com...
| Quote: | Hello,
I created an application to read the incoming data on a comport.
The comport communication is initiated by the
'MyFileHandler=CreateFile(....)' function.
Overlapped mode is used.
It all seems to work fine, but, if 0x00 characters are received they are
NOT
detected by my application. The 'WaitForMultipleObjects' function does
not initiate an event.
The GetFileType(MyFileHandler) returns FILE_TYPE_CHAR.
Does this mean that by definition 0x00 charaters can not be handled
because
they act as an END-OF-STRING character?
Anybody has any experience or idea?
Thanks
Henk
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|