Errors compiling WPTools 9 in Delphi7

  • Errors compiling WPTools 9 in Delphi7:


    Code
    1. [Hint] WPRTEPaint.pas(13122): Value assigned to 'dblbuffer' never used
    2. [Hint] WPObj_IMAGE.pas(1690): Variable 'ameta' is declared but never used in 'TWPOCustomImage.Paint'
    3. [Hint] WPObj_IMAGE.pas(1691): Variable 'ametacan' is declared but never used in 'TWPOCustomImage.Paint'
    4. [Warning] WPIO.pas(50): *** (Info) Reader and writer classes have been included using unit "WPIO"
    5. [Hint] WPRTEFormatBase.pas(204): Value assigned to 'tw' never used
    6. [Error] WPCTRMemo.pas(11586): Undeclared identifier: 'ssTouch'
    7. [Error] WPCTRMemo.pas(12158): Undeclared identifier: 'ssTouch'
    8. [Error] WPCTRMemo.pas(12452): Undeclared identifier: 'ssTouch'
    9. [Fatal Error] WPUtil.pas(74): Could not compile used unit 'WPCTRMemo.pas'


    the other references to "Touch" are inside {$IFDEF DELPHI_TOUCH} blocks.

    Should these lines be inside similar switches, or at least {$IFDEF DELPHIXE} +?

    I do have the {$DEFINE WPPDFEX} on in WPINC.INC , if it's related at all.


    Thanks!

  • Sorry, those compares with ssTouch have been added in last upload. They will be removed for Delphi 7 and other older versions.


    BTW: Hints like "Value assigned to '...' never used" are often caused by code to avoid hints "Variable has not been assigned".