MSDN 64-bit issue RRS feed

  • Question

  • I am developing 64-bit Windows program and need to use CListCtrl and CTreeCtrl.
    But there are following sentences in MSDN:
       BOOL SetItemData(
           int nItem,
           DWORD_PTR dwData
       Sets the 32-bit application-specific value associated with the item
    specified by nItem.

      Similar sentences appear in CListCtrl::GetItemData(),
    CListCtrl::InsertItem() and CTreeList::SetItemData(), etc.

    How do I understand "32-bit"? Does it mean I cannot pass 64-bit value to it?
    or just Microsoft forgot to update these pages?

    Where should I get help on this issue?

    Wednesday, November 8, 2006 3:30 AM


  • Jessie:

    Your assumption of overlooked documents is correct.  The DWORD_PTR type's size depends on the platform (4 bytes on 32bit and 8 bytes on 64bit).

    You can use SetItemData on 64bit and 32bit without an issue.


    Tuesday, November 21, 2006 6:06 PM

All replies