Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Readme method
Message
De
11/04/2000 13:59:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00357944
Message ID:
00358225
Vues:
15
>Tamor,
>I may be wroing but, doesn't TEXT...ENDTEXT compile your text into the EXE? If you use #IF .F. ... #ENDIF then you won't get EXE bloat if you have alot of commments.

PFMJI,

Hi Larry, Its funny this should come up (for me anyway) I just finished writing a COM server for a VB colleague, and I have been using the zReadMe (#IF .f.) version for a while now in my COM servers--after seeing it in VMP of course.

I decided on this one to have the zReadMe RETURN the string. That way, in order to learn how to use the object, all someone has to do is say:
Set obj = CreateObject("MyServer.MyClass"0
MsgBox obj.zReadMe()
After reading this thread, I thought about what you are saying about bloat, so I wrapped my string in #IF .f. #ENDIF, and recompiled

The savings is about 500 bytes for about twenty lines of comments.

I guess this IS wasteful, but it seems handy.

The question becomes, is the wasted memory worth the supposed benefit of keeping the readme with the compiled object (like say distributing the .dll only)

Just curious what you guys think.

Best,
Bill
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform