BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Comport receiving

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
Henk van Winkoop
Guest





PostPosted: Mon Dec 05, 2005 9:12 pm    Post subject: Comport receiving Reply with 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
Henk van Winkoop
Guest





PostPosted: Mon Dec 05, 2005 9:36 pm    Post subject: Re: Comport receiving Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.