Next Previous Up Top Contents Index

2 The Functional Developer Win32 API Libraries

2.7 Handling Dylan conditions in a Win32 application

The Win32-User library exports from its Win32-Default-Handler module a handler utility function called win32-last-handler, defined on objects of class <serious-condition>.

win32-last-handler

Function

Displays a rudimentary Win32 dialog to allow the user to decide what to do with the Dylan condition that has been signalled.
It is a handler utility function that can be by bound dynamically around a computation via let handler or installed globally via last-handler-definer. It is automatically installed as the last handler simply by using the Win32-User library.
The function has the following call syntax:
  win32-last-handler (serious-condition, next-handler)

The serious-condition argument is an object of class serious condition. The next-handler argument is a function. The win32-last-handler function returns no values.
The following form defines a dynamic handler around some body:
  let handler <serious-condition> = win32-last-handler;

while the following form installs a globally visible last-handler:
  define last-handler <serious-condition> = win32-last-handler;

See also last-handler-definer and default-last-handler, exported from the Functional-Extensions library and module, in the Core Features reference manual.

C FFI and Win 32 Reference - 31 MAR 2000

Next Previous Up Top Contents Index