Information générale
Catégorie:
The Mere Mortals Framework
>I'd like to create objects that are stored in external VCXs, but I don't want to compile them in APP or EXE.
>It looks like classes.dbf can handle this if I provide cLibrary, but don't provide cFileName. However, GetClassName method of cAbstractFactory class adds an external class library only if cFileName is filled.
>
>Below is the code that makes GetClassName more flexible:
>
>*{ Commented by SGM at 08:14:26 on July 20, 2000
>* IF NOT EMPTY(lcLibrary) AND NOT EMPTY(lcFileName)
>* AddLib(lcLibrary, lcFileName)
> IF NOT EMPTY(lcLibrary)
> IF EMPTY(lcFileName)
> AddLib(lcLibrary)
> ELSE
> AddLib(lcLibrary, lcFileName)
> ENDIF
>*} End Commenting 08:14:26 - July 20, 2000
Be careful with deleivering external class libraries. We did this with a rather large application and found it to create alot of network I/O and instability. In fact, by compiling all our class libraries into apps and exe's, we realized a 50% performance gain. Another approach would be to use the SET CLASSLIB IN clause which is currently supported.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement