>>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.
>
>
>did you check:
>ContainerParentclass in exe
>
>ContainerEmpty as ContainerParentclass in vcx
Tried, didn't work.
>FormfromVcx aggregates ContainerEmpty, both in vcx ?
>
>Do you have a MVF (minimum viable failure) to horse around if time permits ?
This is what (finally, with lots of knocks on wood) worked:
- caller container inside the exe, not subfolder\my.vcx
- it launches a form inside the exe, not subfolder\my.vcx
- it then instantiates the containers as needed, from subfolder\my.vcx
IOW, a container from subfolder\my.vcx launching a form with further container, all from subfolder\my.vcx, doesn't work - in too many places it doesn't find classlibs in exe, even though they were explicitly open (set classlib to myparent.vcx in the.exe additive, dozen of). I guess the path hardcoded in the classloc memo in the vcx serves as a parameter for an implicit newobject(), which can't be helped.