Click here to Skip to main content
15,891,856 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblems with MRU Files Pin
José Luis Sogorb11-Oct-02 8:50
José Luis Sogorb11-Oct-02 8:50 
GeneralSendmessage Pin
Anthony988711-Oct-02 8:06
Anthony988711-Oct-02 8:06 
GeneralRe: Sendmessage Pin
Nick Parker11-Oct-02 8:34
protectorNick Parker11-Oct-02 8:34 
GeneralRe: Sendmessage Pin
valikac11-Oct-02 15:18
valikac11-Oct-02 15:18 
GeneralRe: Sendmessage Pin
Michael Dunn11-Oct-02 16:17
sitebuilderMichael Dunn11-Oct-02 16:17 
QuestionHow to get the Error Pin
Gaurika Wijeratne11-Oct-02 7:49
Gaurika Wijeratne11-Oct-02 7:49 
AnswerRe: How to get the Error Pin
Paul M Watt11-Oct-02 9:27
mentorPaul M Watt11-Oct-02 9:27 
AnswerRe: How to get the Error Pin
Alvaro Mendez11-Oct-02 11:33
Alvaro Mendez11-Oct-02 11:33 
To add to Paul's excellent comments:

It's best to derive all your exception classes from one base class, such that you can simply catch any of them in one clause. Then you can leave the catch(...) clause for things that would not otherwise happen if your code were bug-free, such as access violations.

try
{
   ...
}
catch (BaseExceptionClass& e)
{
   // deal with my exceptions
}
catch (...)
{
   // deal with bugs in my code
}


Regards,
Alvaro

Insanity: doing the same thing over and over again and expecting different results. - Albert Einstein
GeneralSTL adding two sets together Pin
ns11-Oct-02 7:47
ns11-Oct-02 7:47 
GeneralRe: STL adding two sets together Pin
Daniel Turini11-Oct-02 7:46
Daniel Turini11-Oct-02 7:46 
GeneralRe: STL adding two sets together Pin
Nick Parker11-Oct-02 8:53
protectorNick Parker11-Oct-02 8:53 
GeneralRe: STL adding two sets together Pin
Daniel Turini11-Oct-02 8:56
Daniel Turini11-Oct-02 8:56 
GeneralRe: STL adding two sets together Pin
Nick Parker11-Oct-02 9:01
protectorNick Parker11-Oct-02 9:01 
GeneralRe: STL adding two sets together Pin
jbarton11-Oct-02 9:46
jbarton11-Oct-02 9:46 
GeneralRe: STL adding two sets together Pin
ns11-Oct-02 9:53
ns11-Oct-02 9:53 
GeneralGetting CRETESTRUCT data from a hook Pin
Gaurika Wijeratne11-Oct-02 7:39
Gaurika Wijeratne11-Oct-02 7:39 
GeneralRe: Getting CRETESTRUCT data from a hook Pin
Paul M Watt11-Oct-02 7:47
mentorPaul M Watt11-Oct-02 7:47 
GeneralRe: Getting CRETESTRUCT data from a hook Pin
Gaurika Wijeratne11-Oct-02 8:10
Gaurika Wijeratne11-Oct-02 8:10 
GeneralRe: Getting CRETESTRUCT data from a hook Pin
Paul M Watt11-Oct-02 9:33
mentorPaul M Watt11-Oct-02 9:33 
GeneralRe: Getting CRETESTRUCT data from a hook Pin
Joel Lucsy11-Oct-02 10:18
Joel Lucsy11-Oct-02 10:18 
GeneralFTP file Pin
Anonymous11-Oct-02 7:37
Anonymous11-Oct-02 7:37 
GeneralRe: FTP file Pin
Rickard Andersson2011-Oct-02 9:14
Rickard Andersson2011-Oct-02 9:14 
GeneralRe: FTP file Pin
Anonymous11-Oct-02 9:34
Anonymous11-Oct-02 9:34 
GeneralRe: FTP file Pin
Rickard Andersson2011-Oct-02 23:27
Rickard Andersson2011-Oct-02 23:27 
GeneralRe: FTP file Pin
perlmunger12-Oct-02 17:01
perlmunger12-Oct-02 17:01 

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.