Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access COM port on Win Xp
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00691747
Message ID:
00691773
Vues:
11
Hi Bernard
The following is the code I use to do the job, but you must have set library to foxtools.fll first and I have not tried it in XP yet. Could you let me know how you got on:

mfPort = "COM2:"
mDialStr = "X"

opencomm = RegFn("OpenComm","CII","I")
writecomm = RegFn("WriteComm","ICI","I")
closecomm = RegFn("CloseComm","I","I")

MComPort = CallFn(opencomm,mfPort,100,100)

=CallFn(writecomm,mComPort,mDialStr,LEN(mDialStr))
WAIT ALLTRIM(mfPort)+" Fired" WINDOW NOWAIT
=CallFn(closecomm,MComPort)

I didn't know there were any other Fox developers in the area. Are you going to the conference in Sydney on the 5th September ?

Cheers
John
To move a mountain start with the smallest stone
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform