Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent class inside exe, subclass in subfolder
Message
From
19/10/2018 12:02:11
 
 
To
19/10/2018 11:08:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008 R2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01662676
Message ID:
01662680
Views:
80
>I'm losing hair for three days now over this problem. Here's the layout of it:
>
>I have to have a replaceable module, which would simply be a bunch of files (vcx, prg, dbf) in a subfolder, so that any updates can be done independently from the main exe. The plan is to actually have the users get the latest from the web, just unzip to this folder (all can be automated, just like other similar cases), but...
>
>The parent classes of the classes in those classlibs are inside the exe. The relative paths to these parent classes are pointing to those inside the main exe, e.g. if there's a classlib called libs\main\blabla.vcx, its subclass in the addon\subbla.vcx has ..\libs\blabla.vcx in its classloc memo. But it won't find it - it says "libs\main\blabla.vcx does not exist". I even tried removing path from classloc in subbla.vcx, tried explicitly opening the classlib inside the exe, tried creating an object based on a class from it, nothing works.
>
>How do I tell it to find the vcx inside the exe?

Maybe it is a naive proposition but why not to include the parent class VCXs into the module that you use separately from the main EXE?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform