Click here to Skip to main content
15,910,234 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralAdvice for Books Pin
vnm612-May-04 16:18
vnm612-May-04 16:18 
GeneralRe: Advice for Books Pin
Anthony_Yio12-May-04 16:41
Anthony_Yio12-May-04 16:41 
GeneralRe: Advice for Books Pin
vnm613-May-04 21:01
vnm613-May-04 21:01 
GeneralCATCH_ALL and OnCtlColor Pin
Coremn12-May-04 15:01
Coremn12-May-04 15:01 
GeneralRe: CATCH_ALL and OnCtlColor Pin
monrobot1312-May-04 15:29
monrobot1312-May-04 15:29 
GeneralRe: CATCH_ALL and OnCtlColor Pin
Coremn12-May-04 15:42
Coremn12-May-04 15:42 
GeneralRe: CATCH_ALL and OnCtlColor Pin
Coremn12-May-04 16:17
Coremn12-May-04 16:17 
GeneralRe: CATCH_ALL and OnCtlColor Pin
Ryan Binns12-May-04 18:02
Ryan Binns12-May-04 18:02 
There are a limited number of device contexts available at any one time. Every time this executes, you are locking one of these DCs with GetDC() but not releasing it with ReleaseDC(). Eventually, there will be no DCs available, and GetDC() will return NULL. Since you're not doing any error checking, you'll get a NULL-pointer exception while trying to call GetPixel().

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralInterface Methods Pin
monrobot1312-May-04 14:20
monrobot1312-May-04 14:20 
GeneralRe: Interface Methods Pin
Milton Karimbekallil12-May-04 21:06
Milton Karimbekallil12-May-04 21:06 
GeneralEXCEPTION_BREAKPOINT not raised Pin
Brian Tietz12-May-04 14:18
Brian Tietz12-May-04 14:18 
GeneralRe: EXCEPTION_BREAKPOINT not raised Pin
Ryan Binns12-May-04 18:21
Ryan Binns12-May-04 18:21 
GeneralATL 7 WTL 7.1 Pin
monrobot1312-May-04 13:59
monrobot1312-May-04 13:59 
GeneralRe: ATL 7 WTL 7.1 Pin
Michael Dunn12-May-04 15:37
sitebuilderMichael Dunn12-May-04 15:37 
GeneralRe: ATL 7 WTL 7.1 Pin
monrobot1312-May-04 16:09
monrobot1312-May-04 16:09 
QuestionMessageBox Not Displayed from Destructor? Pin
Justin Cooke12-May-04 11:56
Justin Cooke12-May-04 11:56 
AnswerRe: MessageBox Not Displayed from Destructor? Pin
Diddy14-May-04 0:56
Diddy14-May-04 0:56 
GeneralRe: MessageBox Not Displayed from Destructor? Pin
Justin Cooke14-May-04 6:41
Justin Cooke14-May-04 6:41 
GeneralRe: MessageBox Not Displayed from Destructor? Pin
Diddy18-May-04 1:19
Diddy18-May-04 1:19 
GeneralRemoval of source control (VSS) Pin
Janovetz12-May-04 11:56
Janovetz12-May-04 11:56 
Generalfade screen Pin
johansmits12-May-04 11:16
johansmits12-May-04 11:16 
GeneralRe: fade screen Pin
Christian Graus12-May-04 12:13
protectorChristian Graus12-May-04 12:13 
Generalglobal #define !!! Pin
Hesham Amin12-May-04 10:42
Hesham Amin12-May-04 10:42 
GeneralRe: global #define !!! Pin
Christopher Lloyd12-May-04 11:07
Christopher Lloyd12-May-04 11:07 
Generalthank you but... Pin
Hesham Amin12-May-04 11:14
Hesham Amin12-May-04 11:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.