Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Remote Custom Class Method
Message
De
01/09/2005 11:21:34
 
 
À
01/09/2005 07:10:38
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01045546
Message ID:
01045854
Vues:
23
>Here is my code for the calling(not where Class is coded and defined):
>
>Set ClassLib To "\\gvsvr03\applications\foxapps\application_users2.0\commonappclasses" In "\\gvsvr03\applications\foxapps\application_users2.0\appusersv3.0.exe" Additive
>
>pdm_var.dc1 = NewObject("global_vars","\\gvsvr03\applications\foxapps\application_users2.0\commonappclasses", "\\gvsvr03\applications\foxapps\application_users2.0\appusersv3.0.exe")
>
>Yet it still gets put into my list of Classes when I do a build.

1. First, the SET CLASSLIB TO statement is not necessary. Remove it. Having the reference to the EXE in the NewObject statement is enough. SET CLASSLIB TO statement tends to create an early binding scenario, where the NewObject method a late binding scenario.

2. Restructure the NewObject statement to
pdm_var.dc1 = NewObject("global_vars","commonappclasses", "\\gvsvr03\applications\foxapps\application_users2.0\appusersv3.0.exe")
I found that when the path to the VCX is not required in the either statement, and that when the SET CLASSLIB TO statement is included, then the class library is placed in the project file.

hope this helps.
Greg Reichert
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform