Okay so i've switched to delphi7 but it gives me a strange error when i try to compile/install the UnDelphiX.dpk.
The error is:

$WEAKPACKAGEUNIT 'DirectX' cannot have initialization or finalization code.

And it is in DirectX.pas header.
Anyone know something about it