Re: CDC::SelectObject
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Sat, 06 Dec 2008 09:40:42 -0500
Given how many times we have people submitting code examples that actually *are* the
complete original code, with no error checking, I've learned to insist that error checking
be demonstrated. Sometimes when I post code, I'll add
"Error checking left as an Exercise For The Reader"
and when posting code where you've stripped the error code out to get a short example,
just add the comment
"To minimize the lines of code, I've stripped out all the error checking code--but it's
there in the original"
so we don't think that WWSIWYG.
joe
On Fri, 5 Dec 2008 08:02:14 -0800 (PST), Frank <jerk@xxxxxx> wrote:
Joseph M. Newcomer wrote:Joseph M. Newcomer [MVP]
[some advice]
Thanks for the advice but what you see here is
not the original code. It has been stripped down
for the newsgroup, some variables have been replaced
by constants, etc. What's more - I do a check on
each and every result value in the original,
of course. All bitmaps are valid and work fine
in the usual functions. Every single value has been
checked in the debugger. My only problem is what
I described: Selecting one bitmap into the
DC succeeds, the other does not.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: CDC::SelectObject
- From: Frank
- Re: CDC::SelectObject
- References:
- CDC::SelectObject
- From: Frank
- Re: CDC::SelectObject
- From: Joseph M . Newcomer
- Re: CDC::SelectObject
- From: Frank
- Re: CDC::SelectObject
- From: Joseph M . Newcomer
- Re: CDC::SelectObject
- From: Frank
- CDC::SelectObject
- Prev by Date: Re: Code Signing Question?
- Next by Date: Re: SW_SHOW & SW_HIDE
- Previous by thread: Re: CDC::SelectObject
- Next by thread: Re: CDC::SelectObject
- Index(es):
Relevant Pages
|