Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Recompiling reduced VCL to shrink DLL: has anybody tried this?

2 views
Skip to first unread message

Ray Lischner

unread,
Jan 12, 1997, 3:00:00 AM1/12/97
to

On Sun, 12 Jan 1997 10:53:58 GMT, bre...@zerocity.it (Stefano
Brentegani) wrote:

>I have written a DLL that uses a TCanvas to draw tooltips in a
>Toolbook application. Although it is pretty simple (just a couple of
>exported functions and some 10 TCanvas methods calls) the size is 140+
>Kb, so I guess a lot of unused code from the VCL is included in it.

The Graphics unit uses Controls and Forms, which brings in most of the
VCL. You can try to sift through Graphics to determine what needs the
Controls and Forms units and remove those parts.

It might be easier to copy TCanvas out of Graphics.pas into your own
file.

--
Ray Lischner, Tempest Software, Inc., Corvallis, Oregon, USA
Author of Secrets of Delphi 2 (http://www.tempest-sw.com/secrets/)

0 new messages