Re: Error messages in C++
From: Roger Pearse (roger_pearse_at_yahoo.co.uk)
Date: 11/13/03
- Next message: Jason: "c++ documentation?"
- Previous message: Chris \( Val \): "Re: Objects"
- In reply to: Anthony Borla: "Re: Error messages in C++"
- Next in thread: Gene Wirchenko: "Re: Error messages in C++"
- Reply: Gene Wirchenko: "Re: Error messages in C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Jason: "c++ documentation?"
- Previous message: Chris \( Val \): "Re: Objects"
- In reply to: Anthony Borla: "Re: Error messages in C++"
- Next in thread: Gene Wirchenko: "Re: Error messages in C++"
- Reply: Gene Wirchenko: "Re: Error messages in C++"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|