Re: Add member variable wizard
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Tue, 28 Oct 2008 19:24:44 -0500
First rule of error reporting: report the EXACT error code that occurred. Second rule:
NEVER return an error state that could be due to any of several possible errors unless
there is a way to retrieve the actual error starte (for example, it is OK to return FALSE
as long as GetLastError gives a meaningful value and you return that!). Third rule: never
assume that an error that is returned indicates exactly one of the potentially several
errors (for example, the asinine linker error that it cannot write the PDB file because
the disk may be full or the user does not have rights to the directory, or some third
cause which I forget, when the truth is that WinDbg is holding the PDB file open! The
only CORRECT message is "Access denied" and to attribute it to three of the four possible
causes is insane).
People who do this have never, ever had to take trouble calls from end users!
joe
On Tue, 28 Oct 2008 06:48:43 -0700, "Tom Serface" <tom.nospam@xxxxxxxxxxxxx> wrote:
I had an interesting one this morning. I mistakenly tried to save a fileJoseph M. Newcomer [MVP]
while a compile was going on (fortunately I can continue editing while a lot
of files are being recompiled). I didn't really want to save it yet (and
potentially mess up the build), so I said cancel and it reported that it
could save the file because it was write protected. That didn't hurt
anything really, it just wasn't true.
Tom
"Joseph M. Newcomer" <newcomer@xxxxxxxxxxxx> wrote in message
news:givcg4pll9mc0ktaf0bg7rv2iqih3m2gfd@xxxxxxxxxx
See, that's our problem: completely unreasonable expectations!
joe
On Mon, 27 Oct 2008 14:00:30 -0700, "Tom Serface"
<tom.nospam@xxxxxxxxxxxxx> wrote:
Agreed. It would be nice if it just worked.
Tom
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- RE: Add member variable wizard
- From: Neil B
- Re: Add member variable wizard
- From: Joseph M . Newcomer
- Re: Add member variable wizard
- From: Anthony Wieser
- Re: Add member variable wizard
- From: Joseph M . Newcomer
- Re: Add member variable wizard
- From: Tom Serface
- Re: Add member variable wizard
- From: Joseph M . Newcomer
- Re: Add member variable wizard
- From: Tom Serface
- Re: Add member variable wizard
- From: Joseph M . Newcomer
- Re: Add member variable wizard
- From: Tom Serface
- RE: Add member variable wizard
- Prev by Date: Re: regsvr32 error code 0x80004002
- Next by Date: Re: File Association in Dialog-Based Application
- Previous by thread: Re: Add member variable wizard
- Next by thread: Re: Add member variable wizard
- Index(es):
Relevant Pages
|