Click here to Skip to main content
16,008,490 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem in redrawing Rectangle on "Up Arrow Key Down" in MFC Dialog Based application Pin
CPallini10-Jun-10 1:02
mveCPallini10-Jun-10 1:02 
Questioncatching new Pin
Sakhalean9-Jun-10 22:56
Sakhalean9-Jun-10 22:56 
AnswerRe: catching new Pin
rp_suman9-Jun-10 23:19
rp_suman9-Jun-10 23:19 
GeneralRe: catching new Pin
Sakhalean9-Jun-10 23:27
Sakhalean9-Jun-10 23:27 
GeneralRe: catching new Pin
rp_suman10-Jun-10 6:00
rp_suman10-Jun-10 6:00 
AnswerRe: catching new Pin
Aescleal9-Jun-10 23:25
Aescleal9-Jun-10 23:25 
GeneralRe: catching new Pin
Sakhalean9-Jun-10 23:28
Sakhalean9-Jun-10 23:28 
GeneralRe: catching new Pin
Aescleal9-Jun-10 23:43
Aescleal9-Jun-10 23:43 
Okay, so what exception is being thrown and what effects does it have on the rest of your program? After the exception has been thrown are you sure you can carry on?

There's really only two uses for catch(...):

- Right at the top of main to make sure you report something's happened, you've got no idea what but you're telling the maintenance programmer they're in for a long slog sorting it out

- At the boundary of a subsystem and you want to convert something catastrophic into something slightly less catastrophic so the program can gracefully(ish) bail out with an error message

Ash
GeneralRe: catching new Pin
Sakhalean10-Jun-10 0:22
Sakhalean10-Jun-10 0:22 
GeneralRe: catching new Pin
Stephen Hewitt10-Jun-10 14:07
Stephen Hewitt10-Jun-10 14:07 
QuestionPopup Menu Pin
VVVimal9-Jun-10 22:37
VVVimal9-Jun-10 22:37 
AnswerRe: Popup Menu Pin
Niklas L9-Jun-10 22:54
Niklas L9-Jun-10 22:54 
AnswerRe: Popup Menu Pin
rp_suman9-Jun-10 22:59
rp_suman9-Jun-10 22:59 
QuestionRe: Popup Menu Pin
David Crow10-Jun-10 3:04
David Crow10-Jun-10 3:04 
Question#import vbe6ext.olb causing a problem Pin
T21029-Jun-10 22:23
T21029-Jun-10 22:23 
QuestionContext Menu Pin
VVVimal9-Jun-10 21:08
VVVimal9-Jun-10 21:08 
AnswerRe: Context Menu Pin
CPallini9-Jun-10 21:12
mveCPallini9-Jun-10 21:12 
AnswerRe: Context Menu Pin
Stephen Hewitt9-Jun-10 21:31
Stephen Hewitt9-Jun-10 21:31 
GeneralRe: Context Menu Pin
VVVimal9-Jun-10 22:32
VVVimal9-Jun-10 22:32 
GeneralRe: Context Menu Pin
Stephen Hewitt14-Jun-10 20:16
Stephen Hewitt14-Jun-10 20:16 
AnswerRe: Context Menu Pin
Parthiban9-Jun-10 22:42
Parthiban9-Jun-10 22:42 
Questionwin32 app window not tabbing to WS_TABSTOP style edit controls Pin
suendisra9-Jun-10 19:58
suendisra9-Jun-10 19:58 
AnswerRe: win32 app window not tabbing to WS_TABSTOP style edit controls Pin
Stephen Hewitt9-Jun-10 20:03
Stephen Hewitt9-Jun-10 20:03 
GeneralRe: win32 app window not tabbing to WS_TABSTOP style edit controls Pin
suendisra9-Jun-10 20:19
suendisra9-Jun-10 20:19 
GeneralRe: win32 app window not tabbing to WS_TABSTOP style edit controls Pin
Stephen Hewitt9-Jun-10 20:23
Stephen Hewitt9-Jun-10 20:23 

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.