Click here to Skip to main content
15,913,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: operator new and CObject Pin
bob1697218-Jun-07 12:01
bob1697218-Jun-07 12:01 
GeneralRe: operator new and CObject Pin
Mark Salsbery18-Jun-07 12:11
Mark Salsbery18-Jun-07 12:11 
GeneralRe: operator new and CObject Pin
Bram van Kampen18-Jun-07 14:45
Bram van Kampen18-Jun-07 14:45 
GeneralRe: operator new and CObject Pin
bob1697218-Jun-07 15:00
bob1697218-Jun-07 15:00 
GeneralRe: operator new and CObject Pin
Mark Salsbery18-Jun-07 13:11
Mark Salsbery18-Jun-07 13:11 
GeneralRe: operator new and CObject Pin
bob1697218-Jun-07 15:08
bob1697218-Jun-07 15:08 
GeneralRe: operator new and CObject Pin
Mark Salsbery18-Jun-07 15:27
Mark Salsbery18-Jun-07 15:27 
GeneralRe: operator new and CObject Pin
Bram van Kampen19-Jun-07 14:27
Bram van Kampen19-Jun-07 14:27 
My whole horror with the Class CException is, that at the Understandable levels, it throws an exception, with a DWORD (QWORD?)number. That's quite simple, a Switch statement will sort what's going on. I can understand that concept. I also understand, that Different people writing different programs, will arrive at the Same exception numbers for different exceptions. I understand that this will be a problem when DLL's Meet.

Somehow, Microsoft devised a scheme which involved development time for derriving a new class from CException, for anything that may go wrong. I understand also that the reason for this is to be able to generate a distinct exception for each case, independent of exception numbering. At the same time, The link between Exception DWORD Numbers for exceptions, and Existing or New derrived exception classes is not very clear in the documentation.

A Point in case is, you use catch(...)in your sample code!as you know, this catches ALL Exceptions. In a Real life situation, how do you only catch those you are interested in and pass the rest on to some other handler.



LateNightsInNewry

GeneralRe: operator new and CObject Pin
Mark Salsbery19-Jun-07 14:58
Mark Salsbery19-Jun-07 14:58 
QuestionQuery interface parameter Pin
_tasleem18-Jun-07 10:47
_tasleem18-Jun-07 10:47 
AnswerRe: Query interface parameter Pin
Mark Salsbery18-Jun-07 11:08
Mark Salsbery18-Jun-07 11:08 
GeneralRe: Query interface parameter Pin
_tasleem19-Jun-07 2:47
_tasleem19-Jun-07 2:47 
GeneralRe: Query interface parameter Pin
Mark Salsbery19-Jun-07 4:33
Mark Salsbery19-Jun-07 4:33 
GeneralRe: Query interface parameter Pin
_tasleem19-Jun-07 9:04
_tasleem19-Jun-07 9:04 
QuestionGDI+ documentation Pin
Force Code18-Jun-07 7:43
Force Code18-Jun-07 7:43 
AnswerRe: GDI+ documentation Pin
Mark Salsbery18-Jun-07 7:47
Mark Salsbery18-Jun-07 7:47 
GeneralRe: GDI+ documentation Pin
Force Code18-Jun-07 8:16
Force Code18-Jun-07 8:16 
GeneralRe: GDI+ documentation Pin
Mark Salsbery18-Jun-07 8:34
Mark Salsbery18-Jun-07 8:34 
GeneralRe: GDI+ documentation Pin
Force Code18-Jun-07 10:08
Force Code18-Jun-07 10:08 
GeneralRe: GDI+ documentation Pin
Mark Salsbery18-Jun-07 11:04
Mark Salsbery18-Jun-07 11:04 
QuestionHandling input and graphics in a game engine Pin
Cyrilix18-Jun-07 7:33
Cyrilix18-Jun-07 7:33 
AnswerRe: Handling input and graphics in a game engine Pin
Force Code18-Jun-07 8:10
Force Code18-Jun-07 8:10 
GeneralRe: Handling input and graphics in a game engine Pin
Cyrilix18-Jun-07 8:29
Cyrilix18-Jun-07 8:29 
GeneralRe: Handling input and graphics in a game engine [modified] Pin
Force Code18-Jun-07 8:51
Force Code18-Jun-07 8:51 
GeneralRe: Handling input and graphics in a game engine Pin
Cyrilix18-Jun-07 9:01
Cyrilix18-Jun-07 9:01 

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.