>>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
Hi Tom
I am using VFP 3.0 on Pc-486/DX2, Windows 3.1,
communicating with AT & T EPABX through standard serial port.
I have noted same behaviour using 16 bit APIs from PowerBuilder.
Narendra
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only