For Programmers: Free Programming Magazines  


Home > Archive > MSDN > December 2004 > problem with srial events









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author problem with srial events
asgar12

2004-12-24, 7:57 am

i've got problem with serial events and with waitcommevent.i want to only detect changes on DSR line.So to tis line I connect 5V amoncg gnd line,and afterward i conect DSR line to gnd line. So for me this
event.For non-overlapped operations waitcommevent blocks and don't wantu finish even when i'm changing state of DSR line.For overlapped operations WaitForSingleObcject finish with timeout code.below you will find my program, can you point me what's wrong with my code?
I work in Borland Builder.thanks for answers.
asgar12

2004-12-24, 8:01 am

example program is in attached file.sory
asgar12

2004-12-24, 8:10 am

i don't know why but attaching code didn't work out.i'll try one more time
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com