Page 1 of 1

Can't find the h file

Posted: Fri Oct 11, 2013 3:06 am
by tonggy
I have installed xlsrwii5_d2010 on C++ Builder 2010,There is a dialog box after I put a XLSReadWriteII5 control ,it say "Unable to find header file for component:XLSSheetData5.h". Why?

Best regards

Re: Can't find the h file

Posted: Fri Oct 11, 2013 7:51 am
by larsa
Hello

Hav you set the search path to the *.h files in your project?

Re: Can't find the h file

Posted: Mon Oct 14, 2013 7:45 am
by tonggy
Hello
I have set the search path to the *.h files in my project? That is OK.But,When I build the project,it has a error.
[BCC32 Error] Xlstokenizer5.hpp(180): E2040 Declaration terminated incorrectly.
180 line is "bool __fastcall EOF(void);"
Why?


Best regards

Re: Can't find the h file

Posted: Mon Oct 14, 2013 9:38 am
by larsa
Hello

The header files are autogenerated by Delphi. One possible reason for the error is that you have installed the wrong Delphi version.

Re: Can't find the h file

Posted: Wed Jan 01, 2014 3:29 pm
by shenjige
I have got the same problem. I have an application that uses version from 2,3,4, and not I tried to upgrade it to version 5. When I build it, it says "E2024 Declaration terminated incorrectly." at the line "bool __fastcall EOF(void);"

I am using c++builder 2010 with this install package "xlsrwii5_d2010_reg.exe". This install package is for dephi 2010. From the website, there is no install package for C++ builder, and I have been using these dephi packages for all my C++ builder applications. It might not be a dephi version incompatibility issue. Otherwise, does Larsa try to tell us we, as C++ builder users, can't use this component any more?

I think maybe the developers need to figure out where the problem lies and fix it.

Thanks!

Gene.

Re: Can't find the h file

Posted: Fri Jan 03, 2014 10:43 am
by larsa
Hello

The only answer I can come up with is that the files are mixed up. Especially if the error message is "Declaration terminated incorrectly" This indicate that the compiler can't read the source code. As the header files are auto generated by the compiler itself it must also be able to read them, unless the files are generated by a later compiler version that it can't read.

Re: Can't find the h file

Posted: Wed Sep 10, 2014 1:26 pm
by Dmitry
I have installed version 5.20.32 on C++ Builder XE6 and have the same problem with EOF declaration.
As I found, this problem occurs only if I insert #include <stdio.h> before #include "XLSReadWriteII5.hpp"!

In file stdio.h declared macros:
#define EOF (-1)

Apparently, declaration in Xlstokenizer5.hpp:
bool __fastcall EOF(void);

after preprocessing transformes into:
bool __fastcall -1(void);

It's not a good idea to use EOF as function name.
In version 5.20.32 'TXLSTokenizer.EOF' still exists...

Re: Can't find the h file

Posted: Tue Sep 16, 2014 10:30 pm
by larsa
Hello

This is fixed in update 5.20.33

Function EOF is renamed.