Patch for ZEOS LIB to be 64 BITS

Code patches written by our users to solve certain "problems" that were not solved, yet.

Moderators: gto, cipto_kh, EgonHugeist, mdaems

Post Reply
matthius
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 06.03.2009, 17:53

Patch for ZEOS LIB to be 64 BITS

Post by matthius »

There is i think a mistake for ZEOS to Be 64 bits compliant.

At procedure TZAbstractRODataset.SetFieldData(Field: TField; Buffer: Pointer);


There is the good sample :

if not (State in [dsCalcFields, dsFilter, dsNewValue]) then
DataEvent(deFieldChange, PtrInt(Field));

PtrInt is chosen for the architecture, Integer 32 or 64.
Longint is 32 bits and was the mistake.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Is that the only change that's needed? Can you provide a complete patch file?

Mark
Image
papelhigienico
Expert Boarder
Expert Boarder
Posts: 113
Joined: 06.10.2006, 14:41
Location: Chapecó - Santa Catarina
Contact:

Post by papelhigienico »

matthius, where you found this mistake? I did the "port" of zeos to 64 bits and I did all replacements for this kind of casting, but maybe I forgot something.
Post Reply