Re: CDC::SelectObject

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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:

[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.
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: CDC::SelectObject
    ... [some advice] ... not the original code. ... for the newsgroup, ... All bitmaps are valid and work fine ...
    (microsoft.public.vc.mfc)
  • Re: Close Access From An ASP Page
    ... Copy your original code into it, ... >> Please reply to the newsgroup. ... This email account is my spam trap so I ...
    (microsoft.public.scripting.vbscript)
  • Re: same insert into problem
    ... in your original code, you need to include the line continuation ... Dirk Goldgar, MS Access MVP ... (please reply to the newsgroup) ...
    (microsoft.public.access.forms)
  • Re: pass variable from an applet to another one
    ... > ERRATA-CORRIGE ... N.B. It is wrong only my message to this newsgroup, the original code that I ... Prev by Date: ...
    (comp.lang.java.programmer)