Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Readme method
Message
From
11/04/2000 13:59:34
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00357944
Message ID:
00358225
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform