Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sub-Classing - 1 Library or 'n' Libraries
Message
From
24/02/2004 10:53:14
 
 
To
24/02/2004 10:24:50
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00880249
Message ID:
00880300
Views:
30
>Hi Greg,
>
>Thanks for the reply. So if I need only a few textboxes on my form. It won't add the entire library into my exe. This is good to know.
>
>Mike

Hi Mike,

I think that this is a wrong assumption if I understand what you are tring to say and if I truly understand how the classlib is used in the exe. I seem to remember that when I used Clipper, that I was told that the linker would pull object code out of libraries to include in the EXE and leave unused code out even though it was part of the same object library.

Someone should jump in here and correct me if I am wrong, but I don't think that classlibs compiled into the exe are handled in this way. It is my understanding that if you include a classlib that contains multiple subclasses for different objects like textboxes, comboboxes, listboxes, command buttons, etc in your EXE, even if you only used a single object from the classlib like textboxes, the entire classlib is still compiled into the exe, even the objects that you did not use. You could test this by creating an object, at runtime, that you did not specifically use in your exe from your classlib to demonstrate that the additional objects in the classlib are indeed part of the exe. Not only does it contain the classlib that contains your subclassed controls but also the parent classlib is also included. At least that is how I think it works.
Previous
Reply
Map
View

Click here to load this message in the networking platform