Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Remote Custom Class Method
Message
From
01/09/2005 11:21:34
 
 
To
01/09/2005 07:10:38
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01045546
Message ID:
01045854
Views:
26
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform