>>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