请问有人可以解释MSDN中的表达式后面的含义吗? [英] Please can somebody explain the the meaning following expression found in MSDN?
问题描述
请问有人可以解释MSDN中的表达式后面的含义吗?
在INT_PTR的描述中,它说指针精度的有符号整数类型。在为指针算术运算整数时使用指针。
为指针运算生成指向整数的指针是什么意思。任何人都可以解释这是什么意思用一行代码表示?
见相关问题:
http://www.codeproject.com/Questions/729747/Please-when-is-it-best-right-to-use-the-new-data-t
http://www.codeproject.com/Questions/729713/Can-the-following-code-run-on-64bit-system
msdn页面位于:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85 ).aspx
_PTR类型(如DWORD_PTR)在API中非常有用,其中值的含义是用户 - 定义。多个Windows API允许存储用户定义的数据值。这可以是整数或指针。尝试在32位DWORD中存储64位指针将不起作用。 DWORD_PTR处理这个问题。
示例:ComboBox,ListBox,ListCtrl,TreeCtrl。
http://msdn.microsoft.com/en-us/library/43y9kx83.aspx
http://msdn.microsoft的.com / EN-US /库/ 287styts.aspx
Please can somebody explain the the meaning following expression found in MSDN?
In the description for INT_PTR , it says,"A signed integer type for pointer precision.Used when casting a pointer to an integer for pointer arithmetic."
What does it mean by " casting a pointer to integer for pointer arithmetic."Can anyone explain what this means with a line of code?
See related questions at:
http://www.codeproject.com/Questions/729747/Please-when-is-it-best-right-to-use-the-new-data-t
http://www.codeproject.com/Questions/729713/Can-the-following-code-run-on-64bit-system
The msdn page is located at:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751(v=vs.85).aspx
The "_PTR" types (like DWORD_PTR) are useful in APIs where the meaning of the value is user-defined. Several Windows APIs allow storing a user defined data value. This could be an integer or a pointer. Trying to store a 64 bit pointer in a 32 bit DWORD won't work. DWORD_PTR takes care of that.
Examples: ComboBox, ListBox, ListCtrl, TreeCtrl.
http://msdn.microsoft.com/en-us/library/43y9kx83.aspx
http://msdn.microsoft.com/en-us/library/287styts.aspx
这篇关于请问有人可以解释MSDN中的表达式后面的含义吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!