Exception Handling

From: Ross (ross.oneill_at_gmail.com)
Date: 02/28/05


Date: 28 Feb 2005 09:21:40 -0800

Hi,

I have a message box that displays the message "Unhandled exception in
Cash32.exe: 0xC000005: access violation".

Is there anyway to write an exception that handles this message. For
example

class microsoft_errors{};

some_function()
{
try{
 // some code
 if (exception = OxC0000005){
  throw microsoft_errors();
 else
  //Continue as normal;
 }
 catch(microsoft_errors){
 message box ("error found in some_function() in XXX.cpp line X ")
}
}//end function

Thanks
Ross