WPTools 6 + C Builder 2007

  • Well, I finally decided because of a few bugs in WPTools 5 to upgrade to WPTools 6.

    As usual, trying to get it installed in C Builder 2007 is like being one's own dentist :shock:!

    I only have the C Builder 2007 personality (i.e. no Delphi). The command line DCC32 compiler always complains about missing files.

    Does any one have a package file for WPTOOLS 6 with C Builder 2007?

    I really would appreciate any help!

    Best Regards,

    Shane

    • Offizieller Beitrag

    Hi,

    Did you you run WPTools 5 with it. V6 should not be no different.
    Which version of BCB2007 do you have. Mine is 11.0.2804.9245. I have some problems with C-Builder 2007 I must admit. I usually recommend to only use the PRO version with BCB.

    [ILINK32 Error] Fatal: Unable to open file 'DB.OBJ'
    [ILINK32 Error] Fatal: Unable to open file 'DESIGNEDITORS.OBJ'
    For missing files during compilation some packages have to be added under "Requires": (dbrtl.bpi, vcl, vclx, designide)

    Under "Delphi Compiler Options" in the field "Use package when compiling" this package is required: designide.
    The Commandline flag should be -LUdesignide as far as I remember.

    And in the options make sure the compiler define WP6 is active
    (or in file WPINC.INC)

    I posted my package project here:
    http://www.wpcubed.com/ftp/BCB2007_Project.zip

    Regards,
    Julian

  • Julian,

    Thanks for the quick reply!

    I wasn't sure how different WPTools 5 was against WPTools 6 so I just installed WPTools6 into WPTools6 directory and removed all references of WPTools5 from my IDE. The WPTools 6 install program did not include a CBuilder 2007 package file.

    I am using C Builder 2007 Pro with all latest patches applied.

    I have a conference call this AM and I will try your recommendations when I can.

    Again, thanks for quick response!

    Best regards,

    Shane

  • Julian,

    I tried the package you sent me and I am getting the following linker errors:

    [Linker Error] Unresolved external '__fastcall Wprtedefs::TWPRTFEngineBasis::SetViewOptions(System::Set<Wprtedefs::WPRTEDefs__111, 0, 29>)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtedefs::TWPRTFEngineBasis::SetViewOptions(System::Set<Wprtedefs::WPRTEDefs__111, 0, 29>)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__tpdsc__ Wprtedefs::WPRTEDefs__561' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__tpdsc__ Wprtedefs::WPRTEDefs__561' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtedefs::TWPCustomTextReader::SetLoadHTMLOptions(System::Set<Wprtedefs::WPRTEDefs__221, 0, 9>)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtedefs::TWPCustomTextReader::SetLoadHTMLOptions(System::Set<Wprtedefs::WPRTEDefs__221, 0, 9>)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtepaint::TWPRTFEnginePaint::PaintRTFPage(int, int, int, int, int, Graphics::TCanvas *, System::Set<Wprtedefs::WPRTEDefs__811, 0, 30>, int, int, int, int, System::Set<Wprtepaint::WPRTEPaint__4, 0, 10>, Wprtedefs::TWPVirtPage *)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtepaint::TWPRTFEnginePaint::PaintRTFPage(int, int, int, int, int, Graphics::TCanvas *, System::Set<Wprtedefs::WPRTEDefs__811, 0, 30>, int, int, int, int, System::Set<Wprtepaint::WPRTEPaint__4, 0, 10>, Wprtedefs::TWPVirtPage *)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtedefs::TWPRTFEngineBasis::SetViewOptionsEx(System::Set<Wprtedefs::WPRTEDefs__211, 0, 5>)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtedefs::TWPRTFEngineBasis::SetViewOptionsEx(System::Set<Wprtedefs::WPRTEDefs__211, 0, 5>)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtedefs::TWPRTFSectionProps::SetSelect(System::Set<Wprtedefs::WPRTEDefs__821, 0, 7>)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPMANHEADFOOT.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtedefs::TWPRTFSectionProps::SetSelect(System::Set<Wprtedefs::WPRTEDefs__821, 0, 7>)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPMANHEADFOOT.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtepaint::TWPRTFEnginePaint::MeasureObject(System::Set<Wprtedefs::WPRTEDefs__351, 0, 3>, Wprtedefs::TParagraph *, int, int, int, int, int, int, Wprtedefs::TWPVirtPage *, int&, int&, Wprtedefs::TWPTextObj *&, Graphics::TCanvas *, int, bool&)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRLABEL.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtepaint::TWPRTFEnginePaint::MeasureObject(System::Set<Wprtedefs::WPRTEDefs__351, 0, 3>, Wprtedefs::TParagraph *, int, int, int, int, int, int, Wprtedefs::TWPVirtPage *, int&, int&, Wprtedefs::TWPTextObj *&, Graphics::TCanvas *, int, bool&)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRLABEL.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtedefs::TWPRTFDataCollection::ListNamesAndCommands(System::Set<Wprtedefs::WPRTEDefs__321, 0, 5>, Classes::TStrings *)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtedefs::TWPRTFDataCollection::ListNamesAndCommands(System::Set<Wprtedefs::WPRTEDefs__321, 0, 5>, Classes::TStrings *)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtedefs::TWPRTFDataCollection::AppendAsSection(Wprtedefs::TWPRTFDataCollection *, System::Set<Wprtedefs::WPRTEDefs__521, 0, 1>)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtedefs::TWPRTFDataCollection::AppendAsSection(Wprtedefs::TWPRTFDataCollection *, System::Set<Wprtedefs::WPRTEDefs__521, 0, 1>)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRMEMO.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtepaint::TWPRTFEnginePaint::DrawLineBorders(Graphics::TCanvas *, Wprtedefs::TParagraph *, int, Wprtedefs::TBorder&, Wprtedefs::TWPVirtPageImageLineRef&, Wprtedefs::TWPVirtPageImageLineRef&, System::Set<Wprtedefs::WPRTEDefs__811, 0, 30>, bool, Wprtedefs::TWPVirtPage *, bool)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRDRAWFKT.OBJ
    [Linker Error] Unresolved external '__fastcall Wprtepaint::TWPRTFEnginePaint::DrawLineBorders(Graphics::TCanvas *, Wprtedefs::TParagraph *, int, Wprtedefs::TBorder&, Wprtedefs::TWPVirtPageImageLineRef&, Wprtedefs::TWPVirtPageImageLineRef&, System::Set<Wprtedefs::WPRTEDefs__811, 0, 30>, bool, Wprtedefs::TWPVirtPage *, bool)' referenced from C:\PROGRAM FILES (X86)\CODEGEAR\RAD STUDIO\5.0\NEWVCL\WPTOOLS6\D2007\DEBUG\WPCTRDRAWFKT.OBJ
    [Linker Error] Unable to perform link
    [Linker Error] Unable to perform link

    Any idea how to fix this?

    Best Regards,

    Shane

  • Julian,

    Well, I removed that file and now I am getting can't find WPFontPrp.dcu.

    If I remove the unit from the build, I still get the same error.

    Any chance of getting a package that will compile with C Builder 2007 with WPDF support?

    I am getting hounded by one of my customers for some fixes of WPTools 5.x problems and they don't understand the excuse "I can't get the new version to compile / install on my machine yet"!

    I appreciate your help but I really need to get this working a little "faster"!

    Best Regards,

    Shane

    • Offizieller Beitrag

    Hi,

    for all: Please install the WPToiols 6 update right over WPTools 5. You can then recompile Your package and projects and continue working with it.

    The problem You are getting probably comes from C-Builders way to add the library path to a project. This is only done when the package is created first. When the path is modified later or the package was created on a different system, the new library path is not loaded into the project options.

    Therefor the path property of the object must be editied to add the wPDF and WPTools paths.

    I can compile a wPDF package when I just add the conditional WPPDFEX to the package options.

    I did it in that package, too:
    http://www.wpcubed.com/ftp/WPTools6_BCB2007_wpdf.zip

    But you will need to edit the paths to make it work on Your system, too.

    Tips to sucessfully compile a WPTools project with C++Builder 2007
    - if error "headerfile not found" add the path to the include directories
    - if error "unresolved external" add the unit, for example WPRTRDefs.pas to project.
    - if error *.res not found please check project search path, add the RES file, too.
    - if error "unknown property" - make sure conditional WP6 has been defined

    Regards,
    Julian

  • Hi,
    I use BDS2007. I have a C++ project in which I use WPTOOLS. I had the same problems : [Linker Error] Unresolved external '__fastcall
    I found a solution by adding the file WPTools5_D11_W32.lib in the project. It's working fine with WPTOOLS5. I suppose it could be the same with WPTOOLS6.
    By now I use WPTOOLS6 and BDS2009. I have no problem with my C++ project.
    Hope I this can help you.

    NB : in my C++ project before I have linker's errors, I had to modify some .h files. This is due at the automatic translation from pascal to C++.

  • JMD,

    THat is what I finally wound up doing because all the WPTools 6 packages I got had one error after another.

    I am hoping to move to C Builder 2010 sometime in early spring after I complete a product upgrade.

    Best Regards,

    Shane