BCB6 compile installation error

  • I tried installing wPDF into BCB6 but got an error from the WPPDFR1.hpp file when compiling the .bpk package. The error occured in the following part....

    struct TWPDFFieldDef
    {
    int x;
    int y;
    int w;
    int h;
    int typ;
    int mode;
    int value;
    char *init;
    char *default;
    char *hint;
    char *text;
    } ;

    The char *default; line was rejected, I assume because 'default' is a reserved word in C++ ?

    I changed this to char *defaultx; and the package compiled and installed ok.

    I searched for an occurance of 'default' in files in the wPDF/BCB6 directory and didn't find any, so will this change cause a problem in running/using wPDF in my BCB6?

    Wouldn't this show up for anyone installing wPDF for BCB6?

    Thank you.

  • Hi there,

    i see, that some time has passed after the last post on this topic, but maybe i get an answer :D

    i had the same error when installing wpdf V2.75, with the "hack" in wppdfr1.hpp everything worked. my question is (because i find this a little dirty solution) did i made something wrong when compiling the sources with bcb6 - in other words - can i generate this hpp file correct somehow? - or is this a general phenomenon when compiling the package in bcb6?

    Daniel