Click here to Skip to main content
15,892,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp required about c language localtime function Pin
Umer Aziz20-Jan-09 6:07
Umer Aziz20-Jan-09 6:07 
GeneralRe: Help required about c language localtime function Pin
CPallini20-Jan-09 6:43
mveCPallini20-Jan-09 6:43 
GeneralRe: Help required about c language localtime function Pin
David Crow20-Jan-09 7:12
David Crow20-Jan-09 7:12 
GeneralRe: Help required about c language localtime function Pin
Umer Aziz20-Jan-09 7:19
Umer Aziz20-Jan-09 7:19 
Questionhow to send a file path from shell extension dll to an application Pin
Nitheesh George20-Jan-09 5:32
Nitheesh George20-Jan-09 5:32 
AnswerRe: how to send a file path from shell extension dll to an application Pin
Code-o-mat20-Jan-09 5:53
Code-o-mat20-Jan-09 5:53 
QuestionSutter/Alexandrescu explanation of Exceptions Pin
Member 260377220-Jan-09 5:29
Member 260377220-Jan-09 5:29 
AnswerRe: Sutter/Alexandrescu explanation of Exceptions Pin
Stuart Dootson20-Jan-09 6:02
professionalStuart Dootson20-Jan-09 6:02 
Member 2603772 wrote:
If you do not throw, then why bother trying to catch, which is what the previous items advocate?


Not using exception specifications doesn't mean you are guaranteeing that your code doesn't throw an exception - it's the reverse of that - you are making no guarantees about whether your code throws exceptions or not. If a piece of code you're calling has no exception specification, assume that it may throw *any* exception. Only handle exceptions if there's some action you can perform that fixes what caused the exception. Any other exception should be allowed to terminate the application - if you don't know how to fix what caused the exception, then you've got problems.

Member 2603772 wrote:
If exception specifications are bad why does C++ support them?


They're not bad per se. The point is that C++ doesn't enforce them or (really) take any notice of them. That means that compilers won't verify that they're correct, so they're liable (like code comments) to become inaccurate as you change the code they describe, because you probably won't remember to change the exception specification.

This article[^] by Herb Sutter may help to make his view on exception specifications clearer?
AnswerRe: Sutter/Alexandrescu explanation of Exceptions Pin
Nemanja Trifunovic20-Jan-09 6:20
Nemanja Trifunovic20-Jan-09 6:20 
QuestionCListBox string wrapping Pin
nuclph20-Jan-09 5:00
nuclph20-Jan-09 5:00 
AnswerRe: CListBox string wrapping Pin
Stuart Dootson20-Jan-09 5:47
professionalStuart Dootson20-Jan-09 5:47 
AnswerRe: CListBox string wrapping Pin
Iain Clarke, Warrior Programmer20-Jan-09 6:11
Iain Clarke, Warrior Programmer20-Jan-09 6:11 
GeneralRe: CListBox string wrapping Pin
Nibu babu thomas20-Jan-09 16:57
Nibu babu thomas20-Jan-09 16:57 
GeneralRe: CListBox string wrapping Pin
Iain Clarke, Warrior Programmer20-Jan-09 21:54
Iain Clarke, Warrior Programmer20-Jan-09 21:54 
QuestionLabel box in MFC Pin
bhanu_850920-Jan-09 2:48
bhanu_850920-Jan-09 2:48 
AnswerRe: Label box in MFC Pin
Cedric Moonen20-Jan-09 2:54
Cedric Moonen20-Jan-09 2:54 
GeneralRe: Label box in MFC Pin
bhanu_850920-Jan-09 3:01
bhanu_850920-Jan-09 3:01 
Questionfacing problem on Listing files in List box Control Pin
m_mun20-Jan-09 1:08
m_mun20-Jan-09 1:08 
AnswerRe: facing problem on Listing files in List box Control Pin
Nibu babu thomas20-Jan-09 1:16
Nibu babu thomas20-Jan-09 1:16 
GeneralRe: facing problem on Listing files in List box Control Pin
m_mun20-Jan-09 2:00
m_mun20-Jan-09 2:00 
AnswerRe: facing problem on Listing files in List box Control Pin
Code-o-mat20-Jan-09 1:21
Code-o-mat20-Jan-09 1:21 
GeneralRe: facing problem on Listing files in List box Control Pin
m_mun20-Jan-09 2:02
m_mun20-Jan-09 2:02 
GeneralRe: facing problem on Listing files in List box Control Pin
krmed20-Jan-09 2:03
krmed20-Jan-09 2:03 
QuestionProblem in ShellExecuteEx. Pin
SNI20-Jan-09 1:01
SNI20-Jan-09 1:01 
AnswerRe: Problem in ShellExecuteEx. Pin
Code-o-mat20-Jan-09 1:08
Code-o-mat20-Jan-09 1:08 

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.