>Hi all
> I came across a strange problem. I made a application for
>Serial communication with an external device using Foxtools & 16 bit api
>calls. In this application, DCB structure has fBinary=0. Now in this application I
>give command to read from external device, it works perfectly and picks
>up 5K data transmitted from device. When I give this command second time
>its behaviour is strange, It picks up whatever is specified in Last
>parameter (length) of ReadComm.ie if I say ReadComm(Commid,rStr,30000). It
>returns with saying it has read 30000 characters which is not the case.
>It runs perfectly for the first time. (ie if I close & reopen the port again
>before giving command it works perfectly)
>
>Now what I found is when I make fBinary=1 in DCB structure. It works
>perfectly all the time.
>
>Can anybody explain this behaviour to me?? Please...
>
>Thanks in Advance
>
>Narendra
Would be nice if you mentioned what platform & what version of FoxPro you were using. It may help us. Please give some details since Comm stuff is not the easiest thing to work with.
Tom