[Lazarus] Parameter types for events

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Thu Feb 19 10:34:29 CET 2015

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?

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the Lazarus mailing list