Can't install on BDS/Delphi 2006

Forum related to version 6.5.1 (alpha) and 6.6.x (beta) of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

CG2003
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: 08.12.2005, 01:09

Can't install on BDS/Delphi 2006

Post by CG2003 »

Hello,

I'm now havin BDS 2006 and I tried to install the Zeos 6.5.1 in it.
I selected the D9-Package. Everything works fine, but when I try to compile and install the ZComponent Packge the Compiler stops at "TLoginEvent". How can I solve this problem.

I hope you can help me.

Best regards,

CG2003
gto
Zeos Dev Team
Zeos Dev Team
Posts: 278
Joined: 11.11.2005, 18:35
Location: Porto Alegre / Brasil

Post by gto »

:shock:
2006 already!?
put some more details dude! :)
[]'s
Use the FU!!!!!IN Google !

gto's Zeos Quick Start Guide

Te Amo Taís!
CG2003
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: 08.12.2005, 01:09

Post by CG2003 »

OK, I start Delphi 2006 for Win32.

I open the "ZeosDbo.bdsgroup" from the "delphi9" directory.
I can compile/install the "ZCore.bpl", "ZParseSql.bpl", "ZPlain.bpl" and "ZDbc.bpl" packages.

But when I try to compile/install the last Package "ZComponent.bpl", I get the following error:


"[Pascal Error] ZConnection.pas(107): E2003 Undeclared identifier: 'TLoginEvent'
[Pascal Warning] ZAbstractRODataset.pas(310): W1000 Symbol 'PSGetTableName' is deprecated
[Pascal Warning] ZAbstractRODataset.pas(311): W1000 Symbol 'PSGetQuoteChar' is deprecated
[Pascal Warning] ZAbstractRODataset.pas(320): W1000 Symbol 'PSGetKeyFields' is deprecated
[Pascal Fatal Error] ZAbstractRODataset.pas(384): F2063 Could not compile used unit '..\..\src\component\ZDatasetUtils.pas'"


that's in the Unit "ZConnection".


I hope anybody can help me...
zippo
Silver Boarder
Silver Boarder
Posts: 322
Joined: 12.10.2005, 18:01
Location: Slovenia

Post by zippo »

Remove all the BPLs and source, recopy the package, add the paths and recompile - maybe it is a Zeos version conflict problem.
Michael
ZeosLib's Handyman :o)
ZeosLib's Handyman :o)
Posts: 189
Joined: 15.08.2005, 16:08
Location: Wehrheim
Contact:

Post by Michael »

Hi CG2003,

I ordered my D2006 Updatge, yesterday 8). If it's installed on my workstation I will be able to tell you more til then try as zippo writes.

Regards.
:prog2: Use the source, dude!

[align=right]..::.. ZeosLib on SourceForge ..::..[/align]
CG2003
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: 08.12.2005, 01:09

Post by CG2003 »

@zippo: Sorry, but that's not working. Already the same error!

@Michael: Thanks. That would be great... ;-)
tygrys
Junior Boarder
Junior Boarder
Posts: 33
Joined: 09.12.2005, 18:31
Location: Poland

Post by tygrys »

Hi,
to solve this issue please add

Code: Select all

DBCommonTypes
into uses clause in ZConnection.pas
The definition of TLoginEvent has been moved here from db unit.

This worked for me.

tygrys
Michael
ZeosLib's Handyman :o)
ZeosLib's Handyman :o)
Posts: 189
Joined: 15.08.2005, 16:08
Location: Wehrheim
Contact:

Post by Michael »

:thx: I'll try it when I've got my D2006 ;-) and then I will create the packages asap.
:prog2: Use the source, dude!

[align=right]..::.. ZeosLib on SourceForge ..::..[/align]
CG2003
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: 08.12.2005, 01:09

Post by CG2003 »

Hmmm, that works, BUT:

Now I get the following error:

[Pascal Error] ZAbstractRODataset.pas(2932): E2072 Number of elements (38) differs from declaration (42)

in Unit "ZAbstractRODataset.pas".

The compiler stops @ line 2931.


Any idea???
tygrys
Junior Boarder
Junior Boarder
Posts: 33
Joined: 09.12.2005, 18:31
Location: Poland

Post by tygrys »

Just add whatever 4 entries to the list at the end. Or, to be more acurate, find the same list in this file which is proprly filled and copy/paste.

tygrys
CG2003
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: 08.12.2005, 01:09

Post by CG2003 »

Yes, that works fine! Thanks!!!

@ Michael: I hope I'll get the D2006 packages?!?!?! ~smile~
CG2003
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: 08.12.2005, 01:09

Post by CG2003 »

Great, the components / packages are installed, but now I have a big problem.

I have an application, with a TZTable and a TZConnection.
Everything works fine, when I compile it under Delphi 7, but when I compile it under Delphi 2006 I get an error:

"TestTable: Cannot modify a read-only dataset".

But in the object-inspector the property "ReadOnly" is "False".

What should I do???
tygrys
Junior Boarder
Junior Boarder
Posts: 33
Joined: 09.12.2005, 18:31
Location: Poland

Post by tygrys »

If you use Delphi 7 and 2006 on the same machine, be sure not to have the path enviroment variable pointing to files in delphi's 7 bpl directory, there could be a conflict.

tygrys
CG2003
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: 08.12.2005, 01:09

Post by CG2003 »

No, I have uninstalled Delphi 7 and Delphi 2006 and reinstalled Delphi 2006. But the same problem...
CG2003
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: 08.12.2005, 01:09

Post by CG2003 »

No idea???
Post Reply