Customdraw can not compile for Win64
Original Reporter info from Mantis: MIS5
-
Reporter name:
Original Reporter info from Mantis: MIS5
- Reporter name:
Description:
When compiling an application that in uses clause include "customdrawncontrols, customdrawndrawers, customdrawn_common" you will get a compile time error:
customdrawnobject_win.inc(590,78) Error: Incompatible type for arg no. 4: Got "&LtPos;address of procedure(QWord;QWord;QWord;LongWord);StdCall>", expected "&LtPos;procedure variable type of procedure(QWord;LongWord;QWord;LongWord);StdCall>"
at
TimerInfo^.TimerID := Windows.SetTimer(0, 0, Interval, @TimerCallBackProc);
which is line 590 in unit customdrawnobject_win.inc
Remy explained it further here:
http://forum.lazarus.freepascal.org/index.php/topic,36977.msg247165.html#msg247165
Steps to reproduce:
Simply try compile
Mantis conversion info:
- Mantis ID: 31968
- OS: 10
- OS Build: 64bi
- Platform: Windows
- Version: 1.6.4