>I'm converting a project from VS2003 to VS2005, and one of the most
>common errors that I'm getting is on my try/catch blocks, where I used to
do:
try { ... }
catch (exception &e) { ... }
VS2005 is complaining that 'exception' isn't recognized... anyone know
what the resolution is to this?
Michael:
#include <exception??
using namespace std; ??
I had the same problem once, and you'd have the same problem if you migrate
from VC2003 to gcc.
In VC2003, exceptions are in the global namespace. In VC2005 (and gcc I seem
to remember) they are in std. That why you are getting those errors.
--
Kind regards,
Bruno van Dooren MVP - VC++
http://msmvps.com/blogs/vanDooren br**********************@hotmail.com