Click here to Skip to main content
16,012,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Many big problems... Pin
Andreas Saurwein6-Feb-02 0:44
Andreas Saurwein6-Feb-02 0:44 
QuestionHuge .bss section in DLL - why? Pin
peterchen5-Feb-02 21:39
peterchen5-Feb-02 21:39 
GeneralHandling Events with Webbrowser2 Control Pin
John Clump5-Feb-02 20:42
John Clump5-Feb-02 20:42 
GeneralRe: Handling Events with Webbrowser2 Control Pin
alex.barylski6-Feb-02 0:19
alex.barylski6-Feb-02 0:19 
GeneralAbout Exception in VC++ Pin
wabc5-Feb-02 20:29
wabc5-Feb-02 20:29 
GeneralRe: About Exception in VC++ Pin
Christian Graus5-Feb-02 20:40
protectorChristian Graus5-Feb-02 20:40 
GeneralRe: About Exception in VC++ Pin
Joaquín M López Muñoz5-Feb-02 21:29
Joaquín M López Muñoz5-Feb-02 21:29 
GeneralRe: About Exception in VC++ Pin
Christian Graus5-Feb-02 21:41
protectorChristian Graus5-Feb-02 21:41 
Joaquín M López Muñoz wrote:
don't agree with you here. It may look ugly (on aestethics I won't discuss), and certainly it can incur a performance penalty, but you get the following advantages by using exceptions instead of traditional error codes à la Win32 API:

I don't think you understood me - I said ALL THE TIME, in other words, I would absolutely use exceptions to detect and respond to errors, but I took the original poster to mean 'why don't more functions get writing using try/catch', and the answer is that quite often there are not a lot of potential errors to catch (sometimes none ) and it just isn't a reasonable thing to do. In that context, I contend that try/catch is very useful, but only in situations where you recognise the possibility of an error. Not every function needs to operate in the context of try/ctach.

I am a vocal advocate of try/catch as an alternative to goto, your example number two is very similar to stuff I have posted many times.

By the way, a BOOL is an int, bool should be used instead.


Christian

I have come to clean zee pooollll. - Michael Martin Dec 30, 2001

Picture the daffodil. And while you do that, I'll be over here going through your stuff.
GeneralRe: About Exception in VC++ Pin
Joaquín M López Muñoz5-Feb-02 21:55
Joaquín M López Muñoz5-Feb-02 21:55 
GeneralRe: About Exception in VC++ Pin
John Clump5-Feb-02 20:55
John Clump5-Feb-02 20:55 
GeneralRe: About Exception in VC++ Pin
alex.barylski5-Feb-02 21:31
alex.barylski5-Feb-02 21:31 
GeneralTricky NT Service Question Pin
Richard Ellis5-Feb-02 19:11
Richard Ellis5-Feb-02 19:11 
GeneralRe: Tricky NT Service Question Pin
Nish Nishant5-Feb-02 20:29
sitebuilderNish Nishant5-Feb-02 20:29 
GeneralRe: Tricky NT Service Question Pin
Michael Dunn5-Feb-02 20:30
sitebuilderMichael Dunn5-Feb-02 20:30 
GeneralRe: Tricky NT Service Question Pin
Andreas Saurwein6-Feb-02 0:27
Andreas Saurwein6-Feb-02 0:27 
GeneralRe: Tricky NT Service Question Pin
Richard Ellis6-Feb-02 18:57
Richard Ellis6-Feb-02 18:57 
QuestionWhat Message is issued? Pin
AnonymousBabe@usa.net5-Feb-02 16:16
AnonymousBabe@usa.net5-Feb-02 16:16 
AnswerRe: What Message is issued? Pin
Paul M Watt5-Feb-02 19:00
mentorPaul M Watt5-Feb-02 19:00 
Questionany other chinese programmer in USA ? Pin
hinasoft5-Feb-02 15:03
hinasoft5-Feb-02 15:03 
AnswerRe: any other chinese programmer in USA ? Pin
alex.barylski5-Feb-02 16:43
alex.barylski5-Feb-02 16:43 
GeneralRe: any other chinese programmer in USA ? Pin
AnonymousBabe@usa.net5-Feb-02 17:32
AnonymousBabe@usa.net5-Feb-02 17:32 
GeneralCaret and MDI View Pin
AnonymousBabe@usa.net5-Feb-02 14:15
AnonymousBabe@usa.net5-Feb-02 14:15 
GeneralSetting up CListView Properties Pin
Aaron Schaefer5-Feb-02 12:07
Aaron Schaefer5-Feb-02 12:07 
GeneralRe: Setting up CListView Properties Pin
Derek Waters5-Feb-02 12:17
Derek Waters5-Feb-02 12:17 
GeneralRe: Setting up CListView Properties Pin
Aaron Schaefer5-Feb-02 12:29
Aaron Schaefer5-Feb-02 12: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.