If the environment is 32 bit then this translates into a Long data type. If the environment is 64 bit then this translates into a LongLong data type.. This data type should be used for pointers and handles. DimmyLongPtrAsLongPtr
Parameters Return value Remarks Show 2 more Retrieves information about the specified window. The function also retrieves the value at a specified offset into the extra window memory. NoteTo write code that is compatible with both 32-bit and 64-bit versions of Windows, useGetWindowLongPtr. When...
LongPtr-Variablen (Long Integer auf 32-Bit-Systemen, LongLong-Ganzzahl auf 64-Bit-Systemen) werden wie folgt gespeichert:Mit Vorzeichen versehene 32-Bit-Zahlen (4 Byte) im Wert von -2.147.483.648 bis 2.147.483.647 auf 32-Bit-Systemen 64-Bit-Zahlen (8 Byte) mit Vorzeichen im Bereich...
Pointers and handles are 32 bits on 32-bit Windows and 64 bits on 64-bit Windows.To write code that is compatible with both 32-bit and 64-bit versions of Windows, use CWindow::GetWindowLongPtr.RequirementsHeader: atlwin.hSee AlsoC
如果是开发win 32位的应用程序,这个时候需要用到两个32位的勾子函数:GetWindowLong和SetWindowLong。 如果是开发win 64位的应用程序,这个时候需要用到两个64位的勾子函数:GetWindowLongPtr和SetWindowLongPtr。 处理64位的上述两个函数(GetWindowLongPtr和SetWindowLongPtr)兼容32位的应用程序,微软的MSDN解释如下: GetWindow...
Return value Remarks Show 2 more Replaces the specified value at the specified offset in the extra class memory or theWNDCLASSEXstructure for the class to which the specified window belongs. NoteTo write code that is compatible with both 32-bit and 64-bit Windows, useSetClassLongPtr. When co...
missing from user32.inci know - they are probably "aliases" for Get/Set Class/Window Long functions on 32-bit OS'sbut - it would be nice to have them :P dedndave Member Posts: 8,158 Still using Abacus 2.0 Logged #1 October 08, 2012, 04:39:10 AM ok - my mistakethey do ...
1 How to fix a VBA "type mismatch" error after switching to 64-bit Excel 1 compatibility 32bit-excel and 64-bit excel (office 365) Related 3 Misunderstanding of Long data type in VBA 2 Difference between Long and Object data type in VBA 2 VBA very Long integer 12 Making Long ...
StartWindowProc是CWindowImplBase的一个静态成员函数,它的工作是建立CWindowImpl派生对象的HWND与对象的 ...
pThisand casts it to aLONG,which is a 32-bit integer type. This truncates the pointer and throws away the upper 32 bits of data. Therefore, when read back, the pointer looks like garbage because the top 32 bits were set to zero (or to0xFFFFFFFF, depending on the value of bit 31)...