Groups | Blog | Home
all groups > visual c > december 2003 >

visual c : Exception Handling


Rick
12/14/2003 9:10:42 PM
Hi,

I have a VC++ application I have been assigned to modify. The app is getting
exceptions from time to time. The current code uses Try / Catch(...) for
exception handling. When the catch is processed it simply sets the Hresult
to e_fail. I'd like to put in some code that would give me the exact error
that occured. THe app is like this

try
call function
call function
call function
.....

catch(...)
hresult = e_fail
return hresult

I'd like to get details as to what failed in the function and which function

Any thoughts/ideas are most welcomed

Thanks
Rick

Onega
12/15/2003 1:20:47 PM
http://www.mvps.org/win32/misc/stackwalk.html


[quoted text, click to view]

AddThis Social Bookmark Button