Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSearching the MSDN Library CD Pin
JennyP20-Aug-02 18:08
JennyP20-Aug-02 18:08 
GeneralRe: Searching the MSDN Library CD Pin
alex.barylski20-Aug-02 19:23
alex.barylski20-Aug-02 19:23 
GeneralRe: Searching the MSDN Library CD Pin
Tomasz Sowinski20-Aug-02 23:58
Tomasz Sowinski20-Aug-02 23:58 
Generaltry/catch Pin
alex.barylski20-Aug-02 16:54
alex.barylski20-Aug-02 16:54 
GeneralRe: try/catch Pin
Chris Losinger20-Aug-02 17:07
professionalChris Losinger20-Aug-02 17:07 
GeneralRe: try/catch Pin
alex.barylski20-Aug-02 19:01
alex.barylski20-Aug-02 19:01 
GeneralRe: try/catch Pin
Tomasz Sowinski20-Aug-02 23:36
Tomasz Sowinski20-Aug-02 23:36 
GeneralRe: try/catch Pin
alex.barylski21-Aug-02 0:51
alex.barylski21-Aug-02 0:51 
Tomasz Sowinski wrote:
How much more expensive is try/catch when compared to dozens of if statements?

I would think quite a few more clocks are expended using try and catch. I suppose you could profile it and find out.

Tomasz Sowinski wrote:
How much more readable is one exception handler than dozens of if statements?

This is true, but it's harder or near impossible to determine what went wrong given the context of the situation. Where as i absolutely know what went wrong i use if's.

cheers

"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
GeneralRe: try/catch Pin
Tomasz Sowinski21-Aug-02 0:58
Tomasz Sowinski21-Aug-02 0:58 
GeneralRe: try/catch Pin
alex.barylski21-Aug-02 3:33
alex.barylski21-Aug-02 3:33 
GeneralRe: try/catch Pin
Tomasz Sowinski21-Aug-02 3:39
Tomasz Sowinski21-Aug-02 3:39 
GeneralRe: try/catch Pin
alex.barylski21-Aug-02 15:25
alex.barylski21-Aug-02 15:25 
GeneralSimple dialog icon problem Pin
Coremn20-Aug-02 16:28
Coremn20-Aug-02 16:28 
GeneralRe: Simple dialog icon problem Pin
Ravi Bhavnani20-Aug-02 17:26
professionalRavi Bhavnani20-Aug-02 17:26 
GeneralUsing both __stdcall and __cdecl libraries in a single app Pin
anu12120-Aug-02 13:52
anu12120-Aug-02 13:52 
GeneralRe: Using both __stdcall and __cdecl libraries in a single app Pin
Todd Jeffreys20-Aug-02 14:00
Todd Jeffreys20-Aug-02 14:00 
GeneralRe: Using both __stdcall and __cdecl libraries in a single app Pin
anu12120-Aug-02 14:37
anu12120-Aug-02 14:37 
GeneralRe: Using both __stdcall and __cdecl libraries in a single app Pin
vc_fan20-Aug-02 15:51
vc_fan20-Aug-02 15:51 
GeneralTransparent toolbar buttons Pin
William Payne20-Aug-02 13:47
William Payne20-Aug-02 13:47 
GeneralRe: Transparent toolbar buttons Pin
alex.barylski20-Aug-02 16:57
alex.barylski20-Aug-02 16:57 
GeneralScroll amount Pin
CaesarCZ20-Aug-02 13:48
CaesarCZ20-Aug-02 13:48 
GeneralRe: Scroll amount Pin
alex.barylski20-Aug-02 16:50
alex.barylski20-Aug-02 16:50 
GeneralRe: Scroll amount Pin
CaesarCZ20-Aug-02 23:51
CaesarCZ20-Aug-02 23:51 
GeneralRe: Scroll amount Pin
alex.barylski21-Aug-02 1:00
alex.barylski21-Aug-02 1:00 
Generalmodal dialog problem Pin
Jan Hirak20-Aug-02 12:38
Jan Hirak20-Aug-02 12:38 

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.