Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fwrite() to com port on another networked computer?
Message
 
 
À
23/08/2000 10:23:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00408219
Message ID:
00408247
Vues:
15
>Is there any way to send data from one computer to the com port on another? Like useing fwrite(). Problem is I've never used fwrite() and the documentation is limited. BTW in VFP5.0

Even with Evan's suggestion of using MSCOMM32 (which I totally agree with), you aren't going to be able to send data to a COM port on another PC.

One way of doing this with VFP 5 is to create a messaging table that is read by a utility running on the mahine with the COM port. Have a timer fire and check the table for tasks to do. It could read from the task table and use an instance of MSComm32 to open the COM port and send data.

IN VFP 6 this would be accomplished using DCOM (CREATEOBJECTEX()) instead of the task table/timer approach.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform