Click here to Skip to main content
15,917,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WM_COMMAND custom message ID Pin
Tomasz Sowinski21-Aug-02 0:31
Tomasz Sowinski21-Aug-02 0:31 
GeneralText HOOK Pin
Anonymous20-Aug-02 18:24
Anonymous20-Aug-02 18:24 
GeneralRe: Text HOOK Pin
alex.barylski20-Aug-02 19:32
alex.barylski20-Aug-02 19:32 
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 
IMO, it's excessive; especially if you're talking about "catch(...)". unless every function is calling off to code you have no control over that has a high likelyhood of doing something stupid, you should be able to handle most possible error conditions on your own: test that pointer before using it, check your array bounds, etc.. at the very least, checking for possible error conditions will let you handle some situations gracefully. with catch(...), the error has already happened, and you don't really know what caused it, or what the state of the system is.

on the other hand, if your code actually uses specific exception objects as a form of code flow (ie. as C++ friendly goto's), then you might see a lot of try/catch blocks. but, even then, you wouldn't likely have them on every function.

-c


Though the cough, hough and hiccough so unsought would plough me through,
enough that I o'er life's dark lough my thorough course pursue.
--Stuart Kidd

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 
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 

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.