MSDN 64-bit issue
-
Wednesday, November 08, 2006 3:30 AM
I am developing 64-bit Windows program and need to use CListCtrl and CTreeCtrl.
But there are following sentences in MSDN:
CListCtrl::SetItemData
http://msdn2.microsoft.com/en-us/library/936147y4.aspx
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?
Answers
-
Tuesday, November 21, 2006 6:06 PMModerator
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.
Jeff
All Replies
-
Tuesday, November 21, 2006 6:06 PMModerator
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.
Jeff
-
Monday, August 31, 2009 2:59 AMIt's 2009 and the following MSDN page still says 32 bits on all architectures:
http://msdn.microsoft.com/en-us/library/936147y4(VS.100).aspx
Will MSDN be corrected some year? Some programmers wish we didn't have to depend on undocumented behaviour. -
Tuesday, March 20, 2012 4:56 PMAnd now it's 2012 and the preview documentation for Visual Studio 11 still hasn't been updated.