Re: Error messages in C++

From: Roger Pearse (roger_pearse_at_yahoo.co.uk)
Date: 11/13/03


Date: 13 Nov 2003 05:37:46 -0800

Many thanks everyone for their contribution. Anthony, I appreciated
your comments and examples -- most helpful.

"Anthony Borla" <ajborla@bigpond.com> wrote in message news:<UUwsb.8652$aT.6636@news-server.bigpond.net.au>...
> "Roger Pearse" <roger_pearse@yahoo.co.uk> wrote in message
> news:3a88eeea.0311120602.3707009d@posting.google.com...
> > but this is not what I have in mind here. What I'm thinking of
> > is the error that lurks in wait for the unwary somewhere in the
> > code, or whatever -- a catch-all, in other words.
>
> Not sure what you mean. However, there are usually operating system-specific
> functions that perform similar functions like obtaining the error code /
> error description from the last OS call. Although OT, in Win32 you can use
> 'GetLastError' and 'FormatMessage' to perform this type of function.

Well, I suppose it is operating system stuff I have in mind:
zero-divides, etc. GetLastError gets you an errno in Win32: how do
you get something in English from this?

And, is there no platform independent way to get the same sort of
info?

All the best,

Roger Pearse



Relevant Pages

  • Re: FBOFW 5/27
    ... at least see her live in her own apartment in Toronto? ... safe-and-sound Anthony, and they have a baby for Grandma Ellie to coo ... I'm sure he doesn't mind transferring away from ... wrecking other people's lives with their spineless non-committment teasing. ...
    (rec.arts.comics.strips)
  • Re: FBOFW 5/27
    ... at least see her live in her own apartment in Toronto? ... safe-and-sound Anthony, and they have a baby for Grandma Ellie to coo ... I'm sure he doesn't mind transferring away from ... wrecking other people's lives with their spineless non-committment teasing. ...
    (rec.arts.comics.strips)
  • Re: MS Exchange server on FreeBSD?
    ... Anthony? ... Afterall, all he does is fan the flames of aggression. ... I'll let you all make up you mind as to what that is. ...
    (freebsd-questions)
  • Re: ECO for Win32 was Re: Has Borland surpassed our expectations?
    ... > But the phrase "You get what you pay for" comes to mind. ... Which is why there is no ECO for Win32 and apparently won't be? ... Borland would ...
    (borland.public.delphi.non-technical)
  • Re: Can write an operating systems with delphi??
    ... > I was wondering why Borland didn't create it own operating system. ... by 1995 it did have the lion's mind share. ... was introduced Berkeley Software sold a slick GUI OS ... Too bad Berkeley forgot to offer any dev tools to developers. ...
    (borland.public.delphi.non-technical)