No navigation frame on the left?  Click here.

Message tables

 

Have you, too, always felt the burning desire to peek into the message tables embedded into so many binaries? Have you, too, grown sick and tired of the usual mashed display provided by sector editors, hex dumps, and the like?

If yes, this little samplet is for you. It started out using FormatMessage(), like any good little Win32 application should, but I found that I had to look at the binary resource for the message table to get the range of valid message numbers anyway, so I am now dumping the text straight from the resource.

30 Jul 1999: fm.cpp now expects to be compiled as a Unicode application. A simple "cl fm.cpp" on the command line will do, assuming your INCLUDE and LIB environment variables are set properly.

When you play with the sample, don't forget that cmd.exe can do things like

    for /R %systemroot% %f in (*) do fm.exe %f

fm.cpp, 5 KB, message tables as resources and with FormatMessage()