O'Reilly logo

Windows® via C/C++, Fifth Edition by Christophe Nasarre, Jeffrey Richter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 23. Termination Handlers

Close your eyes for a moment and imagine writing your application as though your code could never fail. That’s right—there’s always enough memory, no one ever passes you an invalid pointer, and the files you count on always exist. Wouldn’t it be a pleasure to write your code if you could make these assumptions? Your code would be so much easier to write, to read, and to understand. No more fussing with if statements here and gotos there—in each function, you’d just write your code top to bottom.

If this kind of straightforward programming environment seems like a dream to you, you’ll love structured exception handling (SEH). The virtue of SEH is that as ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required