Micha Nelissen schreef:
Vincent Snijders wrote:
Hi,

The listview example doesn't run on 64 bit computers. This is caused by
the fact that the listview example contains listview items. Those items
are streamed by reading/writing a TItemInfo record for each item with
the following code:
      Stream.ReadBuffer(ItemInfo, SizeOf(ItemInfo));

It's also not big/little-endian safe, I think ?


Yes, it is:

ListItem.Data := Pointer(LEtoN(PtrInt(ItemInfo.Data)));

Vincent

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to