Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Asynchronous OLE
Message
 
À
22/06/1999 23:33:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00232124
Message ID:
00232845
Vues:
22
Hi Erik,

>After looking at Christof's suggestion, I played around and successfully implemented a single-threaded server that starts a timer, returns control to the caller, and has the timer set an object property with the results of the query. This way the client can poll the server for results, and cancel if he chooses.

At DevCon I played with passing object references around via COM. In an earlier version this crashed my system sometimes, but SP 3 seems to more reliable here. What I found especially cool is that you can pass a reference of an object in the Form/Class Designer to another application and for example remote control the Class Designer from Word. *g* Anyway, why don't you pass a reference of the VFP application when you call the method of the COM server and when for example the query finished, you call a method (like events). Then the application doesn't have to poll the server constantly. I haven't tried that myself, though.

Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform