[Lazarus] Parameter types for events

zeljko zeljko at holobit.net
Thu Feb 19 11:08:09 CET 2015


On 02/19/2015 10:34 AM, Mark Morgan Lloyd wrote:
> I've got these methods
>
>    procedure OnAfterShow(afterShowParam: LONGINT);
>    procedure OnAfterOverridesVisibleClick(count: LONGINT);
>
> which are used like this
>
>    Application.QueueAsyncCall(@OnAfterShow, startParam)
> end { TMainForm.FormCreate } ;
>
> On 32-bit systems the parameter type is a longint, but x64 requires Int64.
>
> What's the correct type to ensure portability in this case?

You must use PtrInt.

z.






More information about the Lazarus mailing list