Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call an OLE server Method
Message
From
03/11/2000 19:32:07
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00437034
Message ID:
00437931
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform