I’ve been using c++ for a while, and I’m familiar with normal try/catch. However, I now find myself on Windows, coding in VisualStudio for COM development. Several parts of the code use things like:
TRY {
... do stuff
} CATCH_ALL(e) {
... issue a warning
}
END_CATCH_ALL;
What’s the point of these macros? What benefit do they offer over the built-in try/catch?
I’ve tried googling this, but “try vs TRY” is hard to search for.
It’s an MFC macro:
http://msdn.microsoft.com/en-us/library/t8dwzac0%28VS.71%29.aspx
This page says they’re a remnant from MFC 1.0 – use normal C++ exceptions in new code: