Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fwrite() to com port on another networked computer?
Message
 
 
To
23/08/2000 10:23:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00408219
Message ID:
00408247
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform