[Lazarus] Win 7 issue / Re: -dWINDOWS_LIGATURE [[Re: Font ligatures support]]

Marc Weustink marc at dommelstein.nl
Fri Oct 9 11:43:31 CEST 2020

On 9-10-2020 04:33, Martin Frb via lazarus wrote:
> It might be dead simple (at least I hope)
> function GetCharacterPlacementW(hdc: HDC; lpString: LPCWSTR; nCount, 
> nMaxExtend: Integer; var lpResults: GCP_RESULTSW; dwFlags: DWORD): 
> DWORD; stdcall; external 'gdi32' name 'GetCharacterPlacementW';
> {$ENDIF}
> Add stdcall.
> At least on win10 that makes 32bit working. Not booting up win 7 again.
> I took the declaration from the windows units in fpc => which has some 
> wrongly typed params that I adjusted.
> But it also does not have stdcall.

All winapi calls should have stdcall, at least the ones without are 
(iirc for win64 we use the same calling convention so you might not notice)


More information about the lazarus mailing list