Urgent: WPLockGDICritical undeclared?

  • I just downloaded the lates wPDF that was posted a few days ago to compile into the latest WPTools 5, and I get the following error when compiling WPTools:

    WPPDFWP: Undeclared identifier: WPLockGDICritical

    In this block of code:

    Code
    {$IFDEF WPTOOLS521} // Possible with WPTools V5.21 or higherprocedure TWPPDFExport._Lock;begin{$IFNDEF NEWGR}  EnterCriticalSection(WPLockGDICritical);  // defined in WPRTEPaint!{$ENDIF}end;

    Looks like in WPTools 5.58.1, WPRTEPaint, you changed the the definition.

    In 5.54:

    Code
    WPLockGDICritical : TRTLCriticalSection;

    In 5.58.1:

    Code
    pWPLockGDICritical : ^TRTLCriticalSection;

    Please advise on how to correct ASAP!
    Thanks,
    Eric

  • I changed the code in WPPDFWP to read as follows... I hope this was the correct fix:


    Note the change from "WPLockGDICritical" to "pWPLockGDICritical^" in the two places.
    Eric