Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call an OLE server Method
Message
De
03/11/2000 19:32:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00437034
Message ID:
00437931
Vues:
13
>Petros,
>1. Create a custom class that has a method that runs your process. It also needs a property to serve as a status flag.
>2. Create a timer that checks a property and based on the value runs your process method.
>3. Create a method for the custom class that instantiates an instance of the timer object and enables it. It then immediately issues a return.
>4. Create an EXE and include both classes. Mark the custom class as OLEPUBLIC.
>
>In your application, create an instance of the custom object and call the method that instantiates the timer object. Control will be returned to your calling application. The timer will fire and do the work to perform the process you. In you application, set up a mechanism to check the status flag property.
>

An alternative might be to use DDE for the IPC communication.
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