Updates needed For Win64 bit
Original Reporter info from Mantis: mrnooo
-
Reporter name: Edin
Original Reporter info from Mantis: mrnooo
- Reporter name: Edin
Description:
Winows widgetset needs updating so that there aren't errors on Win64.
New in win64 bit are calls with extension "Ptr" like SetWindowLongPtr.
I discovered this when my dialog displayed an icon.
http://bugs.freepascal.org/view.php?id=19321
When calling something like SetClassLong the function fails without reporting and error!
When I call SetClassLongPtr it works.
I've browsed the Lazarus source and found many that need replacing.
Please update following
GetClassLong -> GetClassLongPtr
SetClassLong -> SetClassLongPtr
GetWindowLong -> GetWindowLongPtr
SetWindowLong -> SetWindowLongPtr
I see that some aren't even defined in winapih.inc.
This is from http://msdn.microsoft.com/en-us/library/ms633589%28v=VS.85%29.aspx
"Note To write code that is compatible with both 32-bit and 64-bit Windows,
use SetClassLongPtr. When compiling for 32-bit Windows, SetClassLongPtr is
defined as a call to the SetClassLong function"
Mantis conversion info:
- Mantis ID: 19439
- Fixed in version: 0.9.31 (SVN)
- Fixed in revision: 36074 (#bf211c7a)