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

C / C++ / MFC

 
GeneralRe: recordset ADO for an empty database Pin
Rene De La Garza11-Oct-02 10:24
Rene De La Garza11-Oct-02 10:24 
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 
That is the problem with the ... catch all operator, there is no way to get the error information. This should be used as a just in case mechanism.

Hopefully you know what type of error will be thrown and you can look for that particular type of exception.

try
{

}
catch (CException &err)
{

}
catch (DWORD &err)
{

}
catch (...)
{

}

You can catch class objects, native data types or do the catch all. The most important thing to remember is to place the exception catch code that is the most detailed or most important to you first in the chain. Because if it is possible for the exception to be casted or converted into one of the other forms in order for the handler to work, it will.

Good Luck


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

AnswerRe: How to get the Error Pin
Alvaro Mendez11-Oct-02 11:33
Alvaro Mendez11-Oct-02 11:33 
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 

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.