Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent class inside exe, subclass in subfolder
Message
From
27/10/2018 04:23:43
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
26/10/2018 17:22:11
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:
01662844
Views:
54
>>It all works when the source folder is there, which will not be the case on clients' side, so I even wrote a batch file to rename it, run the exe, rename back. So here's what works:
>>- the container from my.vcx hosted on a form
>>- instantiating a form from a class in my.vcx, which contains several objects from other classlibs in the exe
>>where it breaks:
>>- addobject, newobject, createobject from a classlib inside the exe
>>
>in addition to privious post: pretty certain you could .addproperty an object createobjected() via factory in exe...
>as last ditch attempt...

Idea discarded already as these objects are containers and need to call thisfrom.some.method().

Another thing I just remembered this morning - this is not the first project of the kind. There's another plugin with bunch of objects (also nested, both in containership and inheritance) which has always worked flawlessly. But it was a container on a form already instantiated inside the exe. And I think in early phases of this one the form was already inside the exe and then it worked.

So I guess the next thing to try is to have an almost empty form, with just minimal code in it (and smart enough we don't have to change it in foreseeable future), inside the exe. Then it should pull its containers from the vcx in subfolder.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform