Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connecting to named pipe from FP/VFP
Message
De
04/05/2001 12:37:42
Larry Huisingh
Lockheed Martin Information Technology
Richland, Washington, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00503564
Message ID:
00503603
Vues:
25
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform