Go to documentation repository
Page History
...
Use a WinAPI function, PostThreadMessage, to catch this message and ensure that the module is unloaded properly. In VC++ and MFC, the WM_EXIT eventis caught in a subclass of CWinApp; in Delphi and СBuilderCBuilder, it is caught in a subclass of TApplication.
Overview
Content Tools