Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding VFP Code to a System Level Write Event
Message
De
24/08/1999 07:57:40
 
 
À
23/08/1999 19:45:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00256875
Message ID:
00256975
Vues:
17
>All,
>
>I am just starting to dig into a new project and was hoping to get a little advice on where I should start. I will be trying bind VFP code to a file write event generated by an outside application (not VFP). This app will be writing to a text file, and I was hoping I could trap this event without adding any code to the outside application. I am hopping I will be able to use VFPCOM.dll (or something inherent to VFP) to bind to a system level event, as opposed to using a timer object & poling the directory for the creation of a text file. I looked into the filesystemobject (Advisor May 1999), but from what I have read, I don't think it will do the trick.
>

VFPCOM will only help if the other application is a COM component of some sort and has an event that you can bind to; there's no generic system-level evnet model available to you to when another app does something and doesn't tell you about it. there's no 'system-level event' to bind to. The Scripting.FileSystemObject doesn't tell you what's going on elsewhere in the system; it provides a COM interface to a number of APIs, but doesn't server as a general purpose IO monitor.

I'm afraid that either your application will have to poll, or the other application will have to signal the event to your VFP application using something like MSMQ, to let your VFP application know when something happened.

>Any advice on getting started is greatly appreciated.
>
>Thanks In Advance,
>
>Nat-
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform