[fpc-pascal] *** GMX Spamverdacht *** Re: Syserrormessage, parameter data type

Jürgen Hestermann juergen.hestermann at gmx.de
Mon Oct 6 07:19:06 CEST 2014


Am 2014-10-05 um 19:04 schrieb leledumbo:
>> But the current situation is wrong for *all* plattforms
> FormatMessage doesn't exist on non-Windows platform. SysErrorMessage doesn't
> call FormatMessage on Linux for instance.

Then it would make even less sense to use INTEGER in SysErrormessage.
The version that calls FormatMessage should use DWORD.
If it will be used on Windows only then there is no reason to use INTEGER
as an intermediate data type if DWORD is fed in and DWORD is handed over.
It makes not sense at all.



More information about the fpc-pascal mailing list