Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET CLASSLIB TO ClassLibrary IN EXEFile ADDITIVE
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
SET CLASSLIB TO ClassLibrary IN EXEFile ADDITIVE
Divers
Thread ID:
00488924
Message ID:
00488924
Vues:
24
I have a main EXE that is launched to provide security and sets up the environment for a suite of child APPs/EXEs. What I would like to do is store class libraries that are common to many of the APPs/EXEs in the main EXE. My main EXE now has these common class libraries included in its projects as well as SET CLASSLIB TO _CommonClassLib_ ADDITIVE in its main program.

The child APPs/EXEs now have these common class libraries excluded from their projects and have a SET CLASSLIB TO _CommonClassLib_ IN _MyMain.EXE_ ADDITIVE in their respective main programs. This approach results in an error: 'Error instantiating class. Cannot find ' _MyClassLib_.

Upon searching MSDN, I came across a problem item, 'Q253879 - BUG Forms Cannot Find Class Library When Calling Exe File'.

This article states that, 'Visual FoxPro cannot find the class libraries for the form even though they may already be in memory. Because the libraries were excluded from the .app file, the form is looking for them on disk, and they cannot be found. Visual FoxPro does not search memory to find these missing classes.'

'The resolution to the problem is to clear the ClassLoc field for all records in the form.scx file and load the class libraries that are in the main .exe file.'

They then reference their 'SetFormClasses' routine that is to be called by the child APPs/EXEs in order to reconcile the location of the class libraries that are in the main EXE.

I have tried this approach to no avail. Any ideas on how to implement this approach, if possible, would be appreciated.

Thanks.
Doug
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform