Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Serial Communication : fBinary
Message
 
À
09/04/1997 07:56:49
Narendra Lilaramani
Gentech Business Machines Ltd
Ahmedabad, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00027564
Message ID:
00027627
Vues:
24
>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
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform