To all Delphi developers: be careful with Delphi 6 Update Pack 2!

To all Delphi developers: be careful with Delphi 6 Update Pack 2!

Applications compiled with new Delphi 6 Update Pack 2 are no longer run
under Windows 95.
This problem doesn't appear in Delphi 6 Update Pack 1 and below.

If you try to execute an application compiled with Upd Pack 2 uder Windows
95 you'll receive
an error message about missing component "oleaut32.dll:VarNot". By analyzing
the source code
(Variants.pas and VarUtils.pas) I realized that such behaviour is caused by
statically linked
routines VarNeg and VarNot from oleaut32.dll. Pure Windows 95 OSR2 does have
oleaut32.dll
but it does not contain VarNot and other necessary variant routines.
VarUtils.pas located
in Delphi 6 Update Pack 1 and below doesn't use VarNot and other variant
routines from oleaut32.dll so
applications compiled with it can run normally under Windows 95.

This is a serious problem because even simplest application of just a form
now requires
oleaut32.dll to run.

There can be the following solution:
Place units Variants.pas and VarUtils.pas from Delphi 6 Update Pack 1 into
your project
directory and rebuild your project. This guarantees your project to be run
under Windows 95.

Best regards,
Atsukovsky Alexander (ats1...@dart.ru)
Moscow, Russia.