WpTools5 Localization with C++Builder

  • Hi Julian,

    i try to Localize WpTools5 (using C++Builder 5) following your manuals but i have an error at compile time.
    Here my lines of code:

    And this are the error:

    Zitat


    [C++ Error] IdeaWp2M.cpp(170): E2285 Could not find a match for 'TWPLocalizationInterface::TWPLocalizationInterface(TWPLanguageControl *)'

    What i must change ?

  • Hi,

    i try your tip but C++Builder compilation error are alwais the same.

    I clean up all obj, hpp, bpl, lib, bpi, etcc... from WpTools5 directory and Borland/Projects... direcotry for verify that only WpTools5 package are created, and this it's right now.
    I have also verified my projects file (in ascii) and it's ok, but my program don't compile.

    Another problem, with v.5.1.14 version when i execute:

    Code
    WPParagraphBorderDlg1->Execute();


    i see this error:

    Zitat


    Error reading cbxShading->ItemIndex: Property does not exist.

  • Hi!

    I placed an TWPLanguageControl *wpLngControl into an TDataModule,
    which is initialized first when the app starts:

    Kind regards,
    E. Hess

  • Zitat


    Error reading cbxShading->ItemIndex: Property does not exist.

    I guess you use BCB 5 as I do.
    cbxShading's ItemIndex got a published property since Delphi / BCB 6, in Delphi / BCB 5 it is not a property. In one of the past WPTools version, Julian reset the ItemIndex to the default value to not appear in the DFM file.
    Unfortunately, the latest WPTools version again had the ItemIndex set to another value instead of the default value.
    The problem is, that this is NOT reported by the compiler but first at runtime, so you will not know, whether the WPTools windows (forms) will really work :-(

    WPCubed should set the cbxShading's ItemIndex to the default value, otherwise you have to remove it yourself out of WpParBrd.dfm.

    Best regards,
    E. Hess

  • Hi,

    thank you for your tips.
    I solved C++Builder 5 compiler error and localization now work fine.

    About

    Zitat

    Error reading cbxShading->ItemIndex: Property does not exist.


    i'm use WpTools5 v.5.17.4 (sorry for typing error in my previous post) and WPParagraphBorderDlg1->Execute(); don't work.

    I see in WpParBrd.dfm and i found this lines:

    please Julian solve also this problem in your next version.