Hi all.

Last week I came across an interestring thing that I thought I might share.

I created an OCX DLL and compiled it after adding some procedures and
functions.

When I compiled it was 311kb + in size !!
I thought that was WAY to big, so I went about taking out various items in
the uses clause in the type lib. and other various units, (i.e. stdvcl,
graphics, and something else..cant remember), and it compiles to 81 kb !!!

The moral is here, DONT rely on the default code that gets generated for you
when you create an OCX iva the File/New menu item, unless you are doing it
by hand...cos. theres stuff there that you prob. dont need, and you have
BLOADED DLL's that doesn't need to be SO BIG.

I guess this is just common sence anyway, but I just thought I would make
you aware of it.....

I also compared the DLL I did in Delphi, and one I did in VB, and the VB one
was a wee bit smaller, BUT of course it needs the BIG 6mb runtime lib !!! so
this means that Delphi is actually better all round for doing OCX DLL's
in...yay !!!

Thanks

Jeremy Coulter
Application Developer

Application Development Centre
Compaq Computer New Zealand Ltd.

Phone:  64 3 371 5724
Fax:            64 3 371 5724
Mobile:       64 0212533214
E-mail: [EMAIL PROTECTED]       
Personal Email: [EMAIL PROTECTED]


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to