Just replace XLAT with XLABT on the 2 error lines, it's GraphicEx that's dont really like Delphi6. GraphicEx is the graphics lib i'm using for TGA and PNG loading.