Doesn't compile on Win64
Original Reporter info from Mantis: CWBudde
-
Reporter name: Christian Budde
Original Reporter info from Mantis: CWBudde
- Reporter name: Christian Budde
Description:
I tried to compile the canvastest on my Windows 64 machine, but it stopped compiling on line
function WindowProc(Window: HWnd; Msg: UInt; WParam: Windows.WParam;
LParam: Windows.LParam): LResult; {$ifdef win32}stdcall{$else}cdecl{$endif};
expecting the 'stdcall' calling convention, but since customdrawn was set as widget set only the 'cdecl' calling convention was present.
Additional information:
By defining the symbol 'win32' locally, I could compile the application, but unfortunately it stopped while caching the fonts:
#0 FREE(void) at ttmemory.pas:232
#1 FACE_DESTROY(0xdc308) at ttobjs.pas:1770
#2 CACHE_DONE({CLAZZ = 0x5fd170, ACTIVE = 0x0, IDLE = 0x0, IDLE_COUNT = 0}, 0xdc308) at ttcache.pas:394
#3 TT_CLOSE_FACE({Z = 0xdc308}) at lazfreetype.pas:632
#4 FONTSSCANFORTTF(0xa9508 'C:\Windows\Fonts\', 0xbecd0) at .\customdrawn\customdrawnproc.pas:908
#5 TCDWIDGETSET__BACKENDLISTFONTPATHS(0x9ec20, 0xbecd0, <error reading variable>) at .\customdrawn\customdrawnwinapi_win.inc:904
#6 TCDWIDGETSET__GENERICAPPINIT(<error reading variable>) at .\customdrawn\customdrawnobject.inc:88
#7 TCDWIDGETSET__APPINIT({PIXELSPERINCHX = 0, PIXELSPERINCHY = 0, COLORDEPTH = 0, INITIALIZED = false}, <error reading variable>) at .\customdrawn\customdrawnobject_win.inc:267
#8 TAPPLICATION__INITIALIZE(<error reading variable>) at .\include\application.inc:449
#9 main at canvastest.lpr:18