Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call an OLE server Method
Message
 
 
To
02/11/2000 05:31:30
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00437034
Message ID:
00437082
Views:
15
>Hi all,
>
>How to call an OLE server Method and be able to navigate in my application until the result of the calling method finish.
>
>Thanks in advance
>Petros

Due to the single threaded nature of VFP, you may or may not be able to do this. Calls to methods must retrun control immediately to VFP in order for it to do anything.

To allow for this in a VFP out-of-process server, you could write a server with a timer. You could instantiate the server enable the timer and when the timer fired, it could run a method based on a property you set before you enable the timer. The method would be run outside of the control of the calling program and therefore, you would have control. You would have to check a status flag periodically to determine when it was completed.

If you are talking about normal OLE automation with something like Word or Excel, I don't know of a way to do it using these directly. You may have to write an out-of-process VFP COM server wrapper to handle it.

HTH.
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