[Message Deleted]
C / C++ / MFC
5
Posts
5
Posters
0
Views
1
Watching
-
Yes, it's called a debugger :rolleyes:
Cédric Moonen Software developer
Charting control [Updated - v1.1] -
If you are the one throwing it, and you are using Microsoft's compiler, you can use the __FILE__ and __LINE__ directives as a part of your exception message.
class custom_exception : public exception { public: custom_exception(const string& file, const string& line, const string& msg) { _Msg = file; _Msg += ":"; _Msg += line; _Msg += "::"; _Msg += msg; } string getMessage() const { return _Msg; } private: string _Msg; }; void MyFunction() throw(...) { // something went wrong, need to throw throw custom_exception(__FILE__, __LINE__, "Something went wrong here!"); }
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac
-
KKumarTG wrote:
[Message Deleted]
Message Deletion is sin here!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
Wheres your question?
_**
**_
WhiteSky