[Lazarus] Portable error messages
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Fri Dec 5 15:42:01 CET 2008
Graeme Geldenhuys wrote:
> On Fri, Dec 5, 2008 at 1:36 AM, Mark Morgan Lloyd
> <markMLl.lazarus at telemetry.co.uk> wrote:
>
>> SysErrorMessage(GetLastError);
>>
>> If there a portable way (e.g. for Linux and Windows) in FPC?
>
> There is a SysUtils function called GetLastOSError(). it's
> cross-platform, but I don't know if it is implemented in all OS's. I
> know it is for Windows and Unix (which includes Linux).
Thanks Graeme, got it. Looks like the other bit of the puzzle is also
called SysErrorMessage().
--
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