The Spreadsheet Sample Application

It is now time to describe a situation where SEH can be used to control expected exceptions instead of suffering the consequences of unhandled exceptions. The Spreadsheet sample application (25-Spreadsheet.exe) shows how to sparsely commit storage to a reserved address space region using structured exception handling. The source code and resource files for the application are in the 25-Spreadsheet directory on the companion content Web page. When you execute the Spreadsheet sample, the following dialog box appears:

The Spreadsheet Sample Application

Internally, the application reserved a region for a two-dimensional spreadsheet. The spreadsheet contains ...

Get Windows® via C/C++, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.