Problems with project compilation with Zeos componets
Posted: 22.01.2011, 02:00
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.
[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.