Can't find the h file

Questions and answers on how to use XLSReadWriteII 5.
Post Reply
tonggy
Posts: 2
Joined: Fri Oct 11, 2013 2:40 am

Can't find the h file

Post 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
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Can't find the h file

Post by larsa »

Hello

Hav you set the search path to the *.h files in your project?
Lars Arvidsson, Axolot Data
tonggy
Posts: 2
Joined: Fri Oct 11, 2013 2:40 am

Re: Can't find the h file

Post 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
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Can't find the h file

Post 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.
Lars Arvidsson, Axolot Data
shenjige
Posts: 23
Joined: Thu Oct 20, 2005 7:09 pm

Re: Can't find the h file

Post 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.
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Can't find the h file

Post 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.
Lars Arvidsson, Axolot Data
Dmitry
Posts: 1
Joined: Wed Sep 10, 2014 11:41 am

Re: Can't find the h file

Post 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...
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Can't find the h file

Post by larsa »

Hello

This is fixed in update 5.20.33

Function EOF is renamed.
Lars Arvidsson, Axolot Data
Post Reply