Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class ProgressIndicator FAW
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01019151
Message ID:
01041973
Vues:
23
Hello Craig,

Your solution worked well in captivity (development), but it is throwing an error for me when released in the wild (production). On the development computer, I guess it's finding the .FXP and using that.

>Take that class (making sure it is OLEPublic still) and place it into a prg file in a seperate empty project. Then, compile your new project as a COM Server (EXE) in VFP.

Confirmed, done as instructed.

>So, let's say your COM Server exe is named "progress.exe"... then you can instantiate it from your main application using loProgress = CreateObject("Progress.ProgressIndicator") - the code from your main application is little different than what you have now except for this change in how it gets instantiated.

Here is my calling code:
LOCAL loProgress
loProgress = CREATEOBJECT("MEprogress.ProgressIndicator") && ERROR HERE
loProgress.setup("Selecting Data for Sample Workorders...", 1, 1, 0, .T., .F.)
loProgress.show()
When running in production, the COM server MEprogress.exe resides in the same folder on the network drive that the calling application is in.
The error message is: "Class definition MEPROGRESS.PROGRESSINDICATOR is not found."

SET OLEOBJECT is at default. Should I explicitly set it ON?
Your additional help will be much appreciated.
Randy Bosma
VFP - Because life is too short to code in something else...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform