Hello,
I'm new here, so I hope I do this right and get along with everyone as good as possible.
The Problem is, this Line of Code:
[...]
if(argc == 1)
{
throw "You did not include any specific arguments!";
}
[...]
catch(char *myException)
{
cout << myException;
}
[...]
If this is thrown on runtime, it will return "Code 3" and this is shown:
"This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information."
But, if I change it like this:
from:
throw "You did not include any specific arguments!";
to:
char *exceptionMessage = "You did not include any specific arguments!";
throw exceptionMessage;
It works just fine.
I really hope one of you guys can help me and of course, tell me what's wrong here.
I'm using XP SP2 and didn't try it on any other system yet, also Code::Blocks.