Installation of wPDF with WPTools in XE3 issues

  • WPTool 6.28 Pro bundle (labeled as 6.28 but included WPTools 6.29.1)
    wPDF 3.77
    RAD Studio XE3
    Windows 8

    I ran setup for both WPTools and wPDF, and I now have two directories, WPTools and wPDF the way the setups wanted them.

    Enabled the WPPDFEX switch in WPINC.INC and attempted to build the project. wpdf_inc.inc not found. Dummy me forgot to add the paths for the XE3 directories of each product to the library paths.

    I then received compile errors since XE3 is VER240, not VER230, so the DELPHIXE define was not set for WPTools, and DELXE define was not set for wPDF. So I added this block to WPINC.INC for WPTools

    Code
    {$IFDEF VER240}{$WARNINGS OFF}{$DEFINE UNICHAR} // Delphi XE3{$DEFINE DELPHIXE} // need new uses clause{$ENDIF}


    and this block to WPPDFR1.PAS for wPDF

    Code
    {$IFDEF VER240}  //Delphi XE3
    {$DEFINE DELXE}
    {$DEFINE JPEGDATA}
    {$ENDIF}

    It now compiles... so these defines were something missing for XE3 compilation.

    Thought you'd like to know.. maybe it will help others as well.

    Eric