Click here to Skip to main content
15,878,945 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Is there any function that can convert text representation"ABCDEF" back to int ? PinPopular
Richard MacCutchan9-Aug-11 23:19
mveRichard MacCutchan9-Aug-11 23:19 
AnswerRe: Is there any function that can convert text representation"ABCDEF" back to int ? Pin
JohnNawrocki23-Aug-11 7:04
JohnNawrocki23-Aug-11 7:04 
QuestionDebug Assertion Error help, here is the exact error [solved] Pin
AndrewG12319-Aug-11 9:52
AndrewG12319-Aug-11 9:52 
AnswerRe: Debug Assertion Error help, here is the exact error Pin
David Crow9-Aug-11 10:23
David Crow9-Aug-11 10:23 
AnswerRe: Debug Assertion Error help, here is the exact error Pin
Richard Andrew x649-Aug-11 13:14
professionalRichard Andrew x649-Aug-11 13:14 
GeneralRe: Debug Assertion Error help, here is the exact error Pin
AndrewG12319-Aug-11 13:24
AndrewG12319-Aug-11 13:24 
GeneralRe: Debug Assertion Error help, here is the exact error Pin
Code-o-mat10-Aug-11 0:23
Code-o-mat10-Aug-11 0:23 
AnswerRe: Debug Assertion Error help, here is the exact error Pin
Chuck O'Toole9-Aug-11 14:23
Chuck O'Toole9-Aug-11 14:23 
The ENSURE and SUCCEEDED macros are quite commonly used to throw a debug assertion failure when some API call returns "false" or "failed" or whatever.

"hr" is the interesting variable being checked and is a common name for "handle for a resource".

If you found the "ENSURE" statement, the really interesting part is above it, where the value of "hr" was set to something the "ENSURE" statement is unhappy with. Look at that.

When you hit the assertion failure and enter the debugger, follow the call stack backwards (down in the listing) until you find something that's in your own code and double click on that, it will take you to your call that called the API that had the argument it was unhappy with. Follow that procedure over and over until you find the call that really messed up the argument.

Remember this process as it will help you over and over again as you run into problems in the future. There is no substitute for learning a good debugging procedure and how to use the debugging tools in your compiler.
GeneralRe: Debug Assertion Error help, here is the exact error Pin
AndrewG12319-Aug-11 16:38
AndrewG12319-Aug-11 16:38 
GeneralRe: Debug Assertion Error help, here is the exact error Pin
Chuck O'Toole9-Aug-11 16:46
Chuck O'Toole9-Aug-11 16:46 
GeneralRe: Debug Assertion Error help, here is the exact error Pin
AndrewG123110-Aug-11 9:39
AndrewG123110-Aug-11 9:39 
QuestionFrame transparent color in animated gif file Pin
includeh109-Aug-11 6:31
includeh109-Aug-11 6:31 
AnswerRe: Frame transparent color in animated gif file Pin
Chris Losinger9-Aug-11 10:45
professionalChris Losinger9-Aug-11 10:45 
QuestionHow to learn DirectDraw since it has been merged with D3D? Pin
Cold_Fearing_Bird9-Aug-11 4:48
Cold_Fearing_Bird9-Aug-11 4:48 
SuggestionRe: How to learn DirectDraw since it has been merged with D3D? Pin
Charles Oppermann9-Aug-11 5:47
Charles Oppermann9-Aug-11 5:47 
GeneralRe: How to learn DirectDraw since it has been merged with D3D? Pin
Chris Losinger9-Aug-11 10:47
professionalChris Losinger9-Aug-11 10:47 
JokeRe: How to learn DirectDraw since it has been merged with D3D? Pin
Charles Oppermann9-Aug-11 10:55
Charles Oppermann9-Aug-11 10:55 
GeneralRe: How to learn DirectDraw since it has been merged with D3D? Pin
Cold_Fearing_Bird9-Aug-11 14:36
Cold_Fearing_Bird9-Aug-11 14:36 
QuestionWhy can't read every value from MRU ? Pin
_Flaviu9-Aug-11 3:15
_Flaviu9-Aug-11 3:15 
QuestionRe: Why can't read every value from MRU ? Pin
David Crow9-Aug-11 3:49
David Crow9-Aug-11 3:49 
AnswerRe: Why can't read every value from MRU ? [modified] Pin
_Flaviu9-Aug-11 5:16
_Flaviu9-Aug-11 5:16 
AnswerRe: Why can't read every value from MRU ? Pin
Richard MacCutchan9-Aug-11 4:53
mveRichard MacCutchan9-Aug-11 4:53 
GeneralRe: Why can't read every value from MRU ? [modified] Pin
_Flaviu9-Aug-11 5:29
_Flaviu9-Aug-11 5:29 
QuestionDebug Assertion Failed Error ! Help me please. Pin
Nguyen Huy Tuan8-Aug-11 22:13
Nguyen Huy Tuan8-Aug-11 22:13 
AnswerRe: Debug Assertion Failed Error ! Help me please. Pin
Code-o-mat9-Aug-11 0:29
Code-o-mat9-Aug-11 0:29 

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.