The Delphi Bug List
Applying VCL fixes
The following is an easy way of compiling and testing a modified VCL unit
without having to alter COMPLIB.DCL:
Construct the test program as a normal Delphi project. Save the modified VCL
.pas unit IN THE SAME DIRECTORY as the test program's unit. When the project
is compiled, it will compile the modified VCL unit too (as it will not find a
corresponding .dcu in that directory). One ends up with the compiled dcu and an
executable for the test program containing that dcu instead of that from the
standard COMPLIB.DCL file.
By Chris Cheney.
A more permanent way of applying the fixes is as follows
(with mask.pas as an example):
- create a new directory, say "fixed"
- copy mask.pas into that directory
- apply your modifications to the source code
- ADD THE APPROPRIATE COMPILER OPTIONS TO THE PAS FILE
(I usually use d-, s-, q-, r-)
- Finally, add the "fixed" directory to your (global) library search
path in Options | Environment -> Library.
Make sure that the new directory shows up BEFORE the default Delphi
LIB directory, i.e. your path should look like:
c:\Delphi\fixed;c:\Delphi\LIB;....
All fixes will be automagically applied and you can easly revoke all
your fixes by simply removing the reference to the "fixed" directory.
By Stefan Hoffmeister.
Uninstalling a component (Delphi 3)
Go to Package Editor (or open the package), usually
DCLUSR30.DPL, and remove the component (there's a button...),
recompile as it wishes.
Index page
The Delphi Bug Lists are maintained by
Reinier Sterkenburg,
with help from the DeBug Team.
All feedback is appreciated. See also the
feedback
section of the Delphi Bug List home page.