Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call an OLE server Method
Message
 
 
To
03/11/2000 03:32:50
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00437034
Message ID:
00437927
Views:
34
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.

HTH.

>Hi Larry,
>
>Thanks for your answer. I try to understand the concept of the timer on the out-of-process OLE server. Can you help me with a simple code sample ?
>
>Thanks in advance
>Petros
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform