I am using VC++2008 Express and for std::exception's constructor, there is a second parameter of type int. What is this parameter? In the definition of the class I found this code:
At first I thought this wasn't needed, but then when I throw exceptions in my DLLs and catch them in the calling app, if I do not pass this parameter, it crashes after throwing the exception. Passing 1 for this parameter stops the crash. What is this second parameter and why do I need to pass it for my DLL & Calling App to not crash?
So should I derive from std::exception and make my own exception class?
EDIT: Well, really I don't need that much for a simple test project. I'm just going to directly throw string literals and catch them as const char *const& for this little test project...