Example code for exception handling without MFC
-
I would love to see some code that demostrates the proper way to throw and catch exceptions without using MFC. I am supposed to derive my own class from std::exception, use with win32 command RaiseException() or do I just create my own exception class. Which is the preferred method?
-
I would love to see some code that demostrates the proper way to throw and catch exceptions without using MFC. I am supposed to derive my own class from std::exception, use with win32 command RaiseException() or do I just create my own exception class. Which is the preferred method?
I'm not sure if this is a subscription area of the Microsoft site or not (I access it through work where we have access to both) but there's a great series of articles that discusses C++ exceptions. Everything you want to know about exceptions and more - it's a 17 part series. http://msdn.microsoft.com/library/default.asp?URL=/library/welcome/dsmsdn/deep051099.htm