Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connecting to named pipe from FP/VFP
Message
From
04/05/2001 12:37:42
Larry Huisingh
Lockheed Martin Information Technology
Richland, Washington, United States
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00503564
Message ID:
00503603
Views:
24
>>Has anyone used named pipes to communicate between a FoxPro (FPW/VFP)
>>application and another application?
>><snip>
>>
>>Larry Huisingh
>
>I've done this before with a FoxPro timer. IOW, check the pipe at certain intervals, if there is anything there, grab it and empty the file. Then the C prog will load a new message and so on and so forth. And also loop if fopen() fails because the other prog has the file open. The drawback is VFP timers are problematic in certain situations.

Do you have any sample code you could share? Are there separate steps such as

1) checking the pipe for a message
2) grabbing the message
3) emptying the file

What code would you use for each step? I have only tried issuing a FREAD that I assumed did all three but that may be too much of an assumption.

Larry
Larry Huisingh
Lockheed Martin Information Technology
Richland WA USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform