Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multitasking from VFP
Message
De
15/07/2004 10:05:38
 
 
À
15/07/2004 08:44:07
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00924617
Message ID:
00924659
Vues:
13
Hi John.

Your facing an uphill battle because VFP does not support multhreading. You can fake multithreading with a timer, a callback function and an EXE COM, but it's not easy (see message #910725 for an exemple). AFAIK, I see only 2 solutions for your problem:

1) You extract the query part into a separate EXE COM and apply the technique used in message #910725

2) You rewrite the query part into a langage that support multithreading (like .NET)

Good luck

>I have read all the threads on this subject and asynchronous processing. I have searched the web and MS.
>
>Trouble is everything is so "over my head" that I am unsure I would know the answer if I saw it.
>
>I have 10 years exposure (probably 3 years hard time) coding FoxPro 2.6.
>I have 3 years experience coding VFP 3.0 - VFP 7.0 with 2 years using Visual FoxExpress framework. So, it seems I should be able to understand a little something.
>
>My question:
>
>I have a VFE/VFP/COM app. I use it as a dll.
>
>I use this dll from inside a 2.6 style program that is part of a 2.6 style application (EXE). Everything runs under VFP 7.0 and WinXP Pro.
>
>I use the dll to perform database processing. It basically "views" data and is used to update data in that database. This database is otherwise maintained by a different VFE/VFP app. So basically I have a COM object that is used from my 2.6 app, to access the database maintained by a different app.
>
>In my 2.6 app, I use the COM object to pull some data. I can not wait for the data to be delivered (approx. 8 seconds). I need to "ask" for the data and move on to do other things.
>
>I suppose I could modify the COM object to do something, that the 2.6 app could check regularly, to see if the COM object has completed it's data delivery task yet.
>
>I do not mind reading but I can't start at the advanced level. Can someone tell me what VFP functionality provides what I am looking for?
>
>This may be useful in understanding my experience level: I can tell you my COM object is not multithreaded or at least I do not think so. I mention this because some of the threads I have read seem to lean toward MTDLL's. I coded the COM app but a lot of it is still a bit tough for me to comprehend.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform