3.2 Creating Robust Applications

Windows 3.1 includes a number of features and enhancements designed to make running Windows applications much more reliable. Efforts to make Windows 3.1 more reliable have focused primarily on three areas:

Improving how the system handles errors if and when they occur.

Avoiding errors in system code by ensuring the validity of all handles, pointers, structures, indices, and flags passed to the system.

Providing better diagnostics, tools, and header files for finding and fixing bugs more efficiently during development.

The two key components improving reliability are the parameter validation built into the Windows operating system and the STRICT type-checking of the WINDOWS.H file. Also useful are the new features of WINDOWSX.H, which include macros, message crackers, and control functions.