Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Progress During COM Call
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01140886
Message ID:
01141029
Vues:
18
>I have an application that I've been breaking down into MT COM DLL modules in order to speed processing by running these processes on a server.
>
>My goal is to simply put a form on the screen during my call to these COM modules that will show a rotating picture or animated GIF until the COM component has finished it's processing (this can be anywhere from 8 seconds to 40+seconds).
>
>I've tried using an animated GIF and a regular bitmap in an image control that I rotated with a timer every 100 milliseconds. Each one works when I run it alone in the IDE, but when I compile and run, the form is displayed in each case, but the pictures show no movement. When the COM call is complete, the form goes away as it should but still no image movement.
>
>Any ideas?
>

I'm not sure if this will work for you, but what I've done in the past when I've had some kind of blocking going on which kept my form from being refreshed was to expose the animation form (non-modal) as a COM component by saving it as a class, then setting it as "OLE Public" (open the class, go to Class, Class Info, check "OLE Public". Then, instead of calling the form the normal way, I instanciate it like any other COM object:

loStatus = CREATEOBJECT("MyProjectName.MyStatusForm")
loStatus.Show()

* Do processing here
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform