Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using serial port without writing to registry
Message
De
17/11/2004 12:26:04
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00961648
Message ID:
00962276
Vues:
12
I tried
fp = fopen('COM1',12)
in VFP 7,8 & 9 beta and got an invalid seek offset error.

Why ?

>If they can not write to registry, then I assume they also can not add a printer for the comm port. You can use FOPEN(), FWRITE(), FREAD() and FCLOSE().
>
>One problem I had recently regardless of the method I used for sending information to a pole display, was high-bit character always being sent to the display. The settings were correct in the device manager for the port - 9600, N 8, 1. The display would not alway work until I forced these setting using the MODE COMx 96,8,N,1 command in a BATch file. We just had this run every time Windows started up, and this eliminated our problem.
>
>>My application communicates with a device in COM port.
>>
>>In Windows XP, users don't have registry write privilege to install MSCOMM. So I cannot use MSCOMM ActiveX control.
>>
>>Is is possible use serial port without ActiveX control ?
>>
>>Are there any samples how to read/write data to COM port using Windows
>>API directly ?
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform