Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Improvement for GetClassName()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00394940
Message ID:
00395019
Vues:
11
>>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.

Thanks for advise! I'll try to do that.

The only problem is that all classes are based on Framework classes and putting just one VCX to a separate project will bring all related classes too. What do you do to avoid such thing?
Serge Matsevilo, Seattle, WA, USA
Senior Programmer/Analyst,
iServ Systems, Inc.
e-mail: smatsevilo@iservsystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform