Problems with project compilation with Zeos componets

Forum related to all other 6.x versions of ZeosLib's DBOs

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
georg275
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 22.01.2011, 01:52
Contact:

Problems with project compilation with Zeos componets

Post by georg275 »

Hi! I'm trying to compile project with ZeosLib components. But compiler find strange errors in libraries. By example:


[C++ Error] ZPlainAdo.hpp(516): E2040 Declaration terminated incorrectly


on row

#pragma option pop
__property Word EOF = {read=_scw_Get_EOF};



or

[C++ Error] oledb.h(2920): E2015 Ambiguity between 'DBROWCOUNT' and 'Zplaindblibdriver::DBROWCOUNT'

on rows

virtual HRESULT STDMETHODCALLTYPE GetNextRows(
/* [in] */ HCHAPTER hReserved,
/* [in] */ DBROWOFFSET lRowsOffset,
/* [in] */ DBROWCOUNT cRows,
/* [out] */ DBCOUNTITEM __RPC_FAR *pcRowsObtained,
/* [size_is][size_is][out] */ HROW __RPC_FAR *__RPC_FAR *prghRows) = 0;

Version of ZeosLib is 6.6.3. It's enough put one component TZconnection on the form, for receive these errors. More strange, that if I create new project with one form and put some components of ZeosLib, it compiles without such problems.
jjeffman
Senior Boarder
Senior Boarder
Posts: 56
Joined: 25.08.2005, 12:40
Location: Porto Alegre

I hope you have solved the problem

Post by jjeffman »

Probably you have ADO components on your application. I think Zeos do not get along with ADO components.

Best regards.
Jayme Jeffman Filho

DBA, Software Engineer
Sul Engenharia e Sistema Ltda

http://www.sulenge.com.br
Post Reply