Click here to Skip to main content
15,904,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get rid of _ftol2_sse Pin
SystemFiles19-May-12 13:02
SystemFiles19-May-12 13:02 
QuestionArccosinus and Arcsinus using floating point assembly Pin
SystemFiles19-May-12 2:54
SystemFiles19-May-12 2:54 
AnswerRe: Arccosinus and Arcsinus using floating point assembly Pin
Luc Pattyn19-May-12 3:28
sitebuilderLuc Pattyn19-May-12 3:28 
GeneralRe: Arccosinus and Arcsinus using floating point assembly Pin
SystemFiles19-May-12 13:05
SystemFiles19-May-12 13:05 
GeneralRe: Arccosinus and Arcsinus using floating point assembly Pin
SystemFiles21-May-12 10:36
SystemFiles21-May-12 10:36 
AnswerRe: Arccosinus and Arcsinus using floating point assembly Pin
Luc Pattyn21-May-12 11:02
sitebuilderLuc Pattyn21-May-12 11:02 
AnswerRe: Arccosinus and Arcsinus using floating point assembly Pin
cmk21-May-12 12:29
cmk21-May-12 12:29 
GeneralRe: Arccosinus and Arcsinus using floating point assembly Pin
SystemFiles19-Jun-12 3:21
SystemFiles19-Jun-12 3:21 
GeneralDriver development help & tips Pin
Brandon-X1200018-May-12 21:45
Brandon-X1200018-May-12 21:45 
GeneralRe: Driver development help & tips Pin
Richard MacCutchan18-May-12 21:56
mveRichard MacCutchan18-May-12 21:56 
GeneralRe: Driver development help & tips Pin
Brandon-X1200018-May-12 22:12
Brandon-X1200018-May-12 22:12 
GeneralRe: Driver development help & tips Pin
Richard MacCutchan19-May-12 0:31
mveRichard MacCutchan19-May-12 0:31 
GeneralRe: Driver development help & tips Pin
«_Superman_»19-May-12 17:37
professional«_Superman_»19-May-12 17:37 
GeneralRe: Driver development help & tips Pin
Erudite_Eric20-May-12 21:37
Erudite_Eric20-May-12 21:37 
GeneralRe: Driver development help & tips Pin
Brandon-X1200020-May-12 22:49
Brandon-X1200020-May-12 22:49 
GeneralRe: Driver development help & tips Pin
Erudite_Eric20-May-12 23:02
Erudite_Eric20-May-12 23:02 
QuestionBest way to handle errors (esp. in games) Pin
forkbomber18-May-12 11:15
forkbomber18-May-12 11:15 
AnswerRe: Best way to handle errors (esp. in games) Pin
TomasRiker218-May-12 13:23
TomasRiker218-May-12 13:23 
GeneralRe: Best way to handle errors (esp. in games) Pin
Stefan_Lang21-May-12 23:54
Stefan_Lang21-May-12 23:54 
AnswerRe: Best way to handle errors (esp. in games) Pin
David Crow18-May-12 16:19
David Crow18-May-12 16:19 
GeneralRe: Best way to handle errors (esp. in games) Pin
charlieg21-May-12 5:50
charlieg21-May-12 5:50 
GeneralRe: Best way to handle errors (esp. in games) Pin
David Crow21-May-12 5:59
David Crow21-May-12 5:59 
AnswerRe: Best way to handle errors (esp. in games) Pin
Aescleal18-May-12 22:39
Aescleal18-May-12 22:39 
GeneralRe: Best way to handle errors (esp. in games) Pin
forkbomber18-May-12 23:34
forkbomber18-May-12 23:34 
AnswerRe: Best way to handle errors (esp. in games) Pin
Stefan_Lang22-May-12 0:12
Stefan_Lang22-May-12 0:12 
Without directly referencing your enumeration, these are the things you should consider:

1. You can't avoid exceptions completely as some DLLs may throw them, so you at least need to be able to catch them

2. Exceptions provide a built-in mechanism to pass messages and an error identifier, and you can easily extend exception objects to hold additional data.

3. Exceptions will pass control to the level of the next higher try block in the call stack, without having to forward a return values up through several function calls.

4. You can't 'forget' to check for an exception like you can forget to check an error return: provided you catch all exceptions in your main function, you can at the very least issue a meaningful error message before having to exit the program. In fact, exceptions are the only way to 100% prevent a 'silent death' of your application, and will prevent most cases of 'hanging' (except for those caused by infinite loops, and then only those cases where you didn't think to check on preconditions and throw an exception if not met...)

Note that the last point (being almost always able to catch an error before the app breaks down) may also allow you to recover sufficient status information for saving the game and resuming at that point! I would say that is a pretty strong point from the PoV of the gamer.

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.