Click here to Skip to main content
15,921,716 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnKeyDown() ignored? Pin
Mark Salsbery13-Apr-07 12:41
Mark Salsbery13-Apr-07 12:41 
GeneralRe: OnKeyDown() ignored? Pin
aquawicket13-Apr-07 12:54
aquawicket13-Apr-07 12:54 
GeneralRe: OnKeyDown() ignored? Pin
aquawicket13-Apr-07 12:55
aquawicket13-Apr-07 12:55 
GeneralRe: OnKeyDown() ignored? Pin
aquawicket18-Apr-07 6:00
aquawicket18-Apr-07 6:00 
QuestionIs there any way to convert MFC application to C# app? Pin
oleg6313-Apr-07 12:12
professionaloleg6313-Apr-07 12:12 
AnswerRe: Is there any way to convert MFC application to C# app? Pin
Mark Salsbery13-Apr-07 12:39
Mark Salsbery13-Apr-07 12:39 
QuestionFirst Chance exception Pin
namratab13-Apr-07 11:10
namratab13-Apr-07 11:10 
AnswerRe: First Chance exception Pin
bob1697214-Apr-07 7:55
bob1697214-Apr-07 7:55 
CException only covers MFC exceptions.

If your exception is a C++ exception, you should catch the appropriate exception class or type.

If your unsure what exception class or type could be "thrown" in a particular context, then it would be advisable to research "exception handling" in MSDN as their are different types that you should get familiar with.

If you are in a hurry, you can catch "(...)" which will get just about anything, but this will possibly be frowned upon by some in the community since you basically lose the exception context and basically defeat the exception mechanism. Using "(...)" essentially turns exception handling into an overpriced "goto". To be fair, there are likely some in the community that feel "(...)" is ok to use and even handy. I find myself sitting on the fence with this one.

If the exceptional condition is avoidable, it might be better to locate where it's getting thrown, and prevent the condition in the first place. It just depends on the exception context since some exceptions are, by design, unavoidable, real world, common occurences like file and database exceptions. Some just shouldn't happen like divide by zero and memory access violations These usually indicate flawed logic and should be removed/rethought/redesigned instead of wrapping in a try/catch.

Thats just my 2 cents.
QuestionDestructor Not Getting Called Pin
CoffeeAddict1913-Apr-07 11:09
CoffeeAddict1913-Apr-07 11:09 
QuestionRe: Destructor Not Getting Called Pin
Mark Salsbery13-Apr-07 11:23
Mark Salsbery13-Apr-07 11:23 
AnswerRe: Destructor Not Getting Called Pin
CoffeeAddict1913-Apr-07 11:32
CoffeeAddict1913-Apr-07 11:32 
GeneralRe: Destructor Not Getting Called Pin
Mark Salsbery13-Apr-07 11:36
Mark Salsbery13-Apr-07 11:36 
GeneralRe: Destructor Not Getting Called Pin
CoffeeAddict1913-Apr-07 11:48
CoffeeAddict1913-Apr-07 11:48 
GeneralRe: Destructor Not Getting Called Pin
Mark Salsbery13-Apr-07 12:10
Mark Salsbery13-Apr-07 12:10 
GeneralRe: Destructor Not Getting Called Pin
Mark Salsbery13-Apr-07 12:33
Mark Salsbery13-Apr-07 12:33 
AnswerRe: Destructor Not Getting Called Pin
John R. Shaw14-Apr-07 15:57
John R. Shaw14-Apr-07 15:57 
QuestionLogOff User from a Service running as System Pin
Gurkenscheibe13-Apr-07 10:44
Gurkenscheibe13-Apr-07 10:44 
Questionwhich one is parent? Pin
iayd13-Apr-07 9:02
iayd13-Apr-07 9:02 
AnswerRe: which one is parent? Pin
Wes Aday13-Apr-07 9:54
professionalWes Aday13-Apr-07 9:54 
QuestionRe: which one is parent? Pin
Maximilien13-Apr-07 9:56
Maximilien13-Apr-07 9:56 
AnswerRe: which one is parent? Pin
CPallini13-Apr-07 10:10
mveCPallini13-Apr-07 10:10 
AnswerRe: which one is parent? Pin
CPallini13-Apr-07 10:06
mveCPallini13-Apr-07 10:06 
AnswerRe: which one is parent? Pin
bob1697213-Apr-07 10:10
bob1697213-Apr-07 10:10 
AnswerRe: which one is parent? Pin
JudyL_MD13-Apr-07 10:14
JudyL_MD13-Apr-07 10:14 
GeneralRe: which one is parent? Pin
iayd13-Apr-07 11:15
iayd13-Apr-07 11:15 

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.