2 ms·
They also avoided the DWORD x86ism and peppered LONG everywhere, preventing a clean upgrade to LP64 since long reasonably had to match as well.
by kevin_thibedeau 5y ago
They also avoided the DWORD x86ism and peppered LONG everywhere, preventing a clean upgrade to LP64 since long reasonably had to match as well.
- matja 5y agoWhy was SetWindowLong (taking LONG) superseded by SetWindowLongPtr (taking LONG_PTR) on 64-bit versions of Windows?
- nikanj 5y agoBecause SetWindowLong can be used to set a callback function, i.e. a 64-bit pointer - but LONG remains 32 bit on 64-bit Windows. Backward compatibility stipulated the need for a new function name