Page 1 of 1

Help compiling the program

Posted: 2006-07-07 10:41:32
by mschillo
Hello to everybody anda special thanks to ant for this wonderful program!!!! :D :D :D

I've a problem compiling the source code with delphi.
While compiling the main.pas file, delphi stops and report these errors:

[Pascal Error] main.pas(196): E2003 Undeclared identifier: ' TElTreeItem'
[Pascal Fatal Error] ElHeader.pas(15): F1026 File not found:'..\ElPack.inc'


I try to cancel all the strings with "eltree" word in their name but, obviously, the program doesn't compile.....so i try to find on the net eltree...it's a littel bit impossible to find it...the home site doesn't have that program, and the only that i found doesnìt work properly because there is the same problem yet....so who can help me?I need to compile the program again. :cry: :cry:
Thanks a lot to everybody who can help me.
Bye bye

Posted: 2006-07-07 15:47:02
by antp
As indicated in the readme.txt there is one at ftp://ftp2.antp.be/antp/software/components/
It works fine in Delphi 7, it should not be difficult to port to Delphi 2005 if needed (new packages to create and .inc file to modify to add latest delphi compiler in it)

Posted: 2006-07-13 13:20:34
by mschillo
Hello Ant, thanks for your help. I have a problem downloading the files that you've said me. I'm not able to download the Eltree from the ftp..can you send it to me by mail?
Thanks a lot

Posted: 2006-07-13 18:22:37
by antp
If you are using IE and that you have a router, try with another browser. If it still does not work, I will send you the file.

Posted: 2006-07-14 08:48:31
by mschillo
Thanks Ant, i was able to download the files with the best browser, firefox. But i have another little problem, always compiling the program.
I download all the files and put them into the same directory (MovieCatalog) with the main files of th program. I start to compile it with my borland develop studio 2005 but it gives me the same error:

[Pascal Error] main.pas(197):E2003 Undeclared identifier: 'TElTreeItem'

how can i compile the program?thanks a lot for all your help

Mschillo ;)

Posted: 2006-07-14 11:52:45
by antp
It has to be installed like other Delphi components...

For Delphi 7:

You have to add the folder ***\Eltree\Code\Source (where *** is the path where you extract it) in Tools -> Environment -> libary -> library path.
Then open eltreeD7.dpk, click "compile", then open dcleltD7.dpk, click "compile" then "install". It should notify you that few components were added.

For Delphi 2005:
The library settings is maybe somewhere else, here at home I only have Delphi 7 so I cannot check.
You have to duplicate the two .dpk files mentionned above (e.g. by putting a 9 instead of the 7 ; do not forget to also edit file contents so the name inside them match the file name).
Then you must also edit ElPack.inc and add a block
{$IFDEF VER170}
...
{$ENDIF}
like the one that exists for VER150.
Then you can install it, I think.
Originally these components were for Delphi 6, I upgraded them to Delphi 7 that way.