home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winui / resource / msgtable / readme.txt < prev   
Encoding:
Text File  |  1996-01-25  |  1.5 KB  |  30 lines

  1. Message Table
  2.  
  3.  
  4. The MSGTABLE sample demonstrates how to construct and use a message table
  5. resource in your application.
  6.  
  7. The sample message table (messages.mc) for the message compiler (MC.EXE)
  8. shows the format of a typical message table source file. The message
  9. table source file contains strings in both English and Japanese. Depending
  10. on what your current language settings are, the correct message strings
  11. will be displayed on the console. Note that some of the entries for each
  12. message are optional but are shown for demonstration purposes. See the
  13. documentation in the tools.hlp file on the message table compiler for more
  14. info on which fields are optional.
  15.  
  16. The msgtest.exe executable shows how to load the message table DLL, how to
  17. extract the message text from the resource with the FormatMessage API, and
  18. how to decode the various bits in the message identifier. Note that the 
  19. messages.h include file to the executable is created during the make process 
  20. by the message compiler (mc.exe) as it is creating the binary resource file 
  21. from the message table source file.
  22.  
  23. The makefile demonstrates how to set up your dependancy rules for your
  24. message table source files, output files, and message table DLL.
  25.  
  26. This sample could be easily modified to link the message table resource
  27. directly into your executable rather than into a stand-alone DLL; there is
  28. no requirement that the message table resouce be located only in a DLL,
  29. though this is the common case.
  30.