5 Commits (e42e6900a5dad50b952d92c57344fdea2e13646e)

Author SHA1 Message Date
Iain Patterson f2ec1c0c55 Localised (almost) all messages.
Use FormatMessage() to localise messages printed to the console or shown
in MessageBoxes.

The new messages are allocated IDs starting at 501 so as not to clash
with event log messages starting at 1001.

Once again French translations were provided by François-Régis Tardy.
13 years ago
Iain Patterson e9d9b2fa71 Fix event logging.
Some messages weren't being logged properly.  One common reason was that
one or more arguments to log_event() were longs but were interpreted
as strings.  Create a temporary buffer and sprintf the numbers to fix
that.
The other reason was that GetLastError() returns a long where a string
was expected.  Restore the previously removed error_string() function to
convert it into an error message.
14 years ago
Iain Patterson 4440946ecc Log messages properly.
Format messages from resource.  Use NSSM binary as the message source.
Note that replacing the binary is prevented if the event viewer is open.
15 years ago
Iain Patterson 06a62a665e Compile messages.
Don't spam the event log with warnings about not finding application
messages.
Every message currently uses the default event ID 1.
15 years ago
Iain Patterson d007ff22ce NSSM 1.0. 15 years ago