Winerr
In any quality program you have to handle and report errors. When
reporting errors from the operating system, it is
>crucial> that you give as much information as
possible to the user. Many functions of the Win32 API set an error
code which can be retrieved using
GetLastError().
You can obtain a description of the error using
FormatMessage(), but using it is an absolute
horror. winerr is a very thin wrapper around
FormatMessage() and
GetLastError() similar in many aspects to C's
strerror().
The overhead of winerr is minimal; the static library is less than one kilobyte in size, and most probably you won't use all of the functions so that your linker will not use the whole library.
License
You may use winerr under the MIT license.
Documentation
You can view winerr's documentation online.
Download
Download winerr: winerr.tar.gz (617 KB).
