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 / messages.mc < prev    next >
Encoding:
Text File  |  1997-10-05  |  6.5 KB  |  194 lines

  1. ; /*
  2. ; Microsoft Developer Support
  3. ; Copyright (c) 1992-1997 Microsoft Corporation
  4. ;
  5. ; This file contains the message definitions for the Win32
  6. ; messages.exe sample program.
  7.  
  8. ;-------------------------------------------------------------------------
  9. ; HEADER SECTION
  10. ;
  11. ; The header section defines names and language identifiers for use
  12. ; by the message definitions later in this file. The MessageIdTypedef,
  13. ; SeverityNames, FacilityNames, and LanguageNames keywords are
  14. ; optional and not required.
  15. ;
  16. ;
  17. MessageIdTypedef=DWORD
  18. ;
  19. ; The MessageIdTypedef keyword gives a typedef name that is used in a
  20. ; type cast for each message code in the generated include file. Each
  21. ; message code appears in the include file with the format: #define
  22. ; name ((type) 0xnnnnnnnn) The default value for type is empty, and no
  23. ; type cast is generated. It is the programmer's responsibility to
  24. ; specify a typedef statement in the application source code to define
  25. ; the type. The type used in the typedef must be large enough to
  26. ; accomodate the entire 32-bit message code.
  27. ;
  28. ;
  29. SeverityNames=(Success=0x0:STATUS_SEVERITY_SUCCESS
  30.                Informational=0x1:STATUS_SEVERITY_INFORMATIONAL
  31.                Warning=0x2:STATUS_SEVERITY_WARNING
  32.                Error=0x3:STATUS_SEVERITY_ERROR
  33.               )
  34. ;
  35. ; The SeverityNames keyword defines the set of names that are allowed
  36. ; as the value of the Severity keyword in the message definition. The
  37. ; set is delimited by left and right parentheses. Associated with each
  38. ; severity name is a number that, when shifted left by 30, gives the
  39. ; bit pattern to logical-OR with the Facility value and MessageId
  40. ; value to form the full 32-bit message code. The default value of
  41. ; this keyword is:
  42. ;
  43. ; SeverityNames=(
  44. ;   Success=0x0
  45. ;   Informational=0x1
  46. ;   Warning=0x2
  47. ;   Error=0x3
  48. ;   )
  49. ;
  50. ; Severity values occupy the high two bits of a 32-bit message code.
  51. ; Any severity value that does not fit in two bits is an error. The
  52. ; severity codes can be given symbolic names by following each value
  53. ; with :name
  54. ;
  55. ;
  56. FacilityNames=(System=0x0:FACILITY_SYSTEM
  57.                Runtime=0x2:FACILITY_RUNTIME
  58.                Stubs=0x3:FACILITY_STUBS
  59.                Io=0x4:FACILITY_IO_ERROR_CODE
  60.               )
  61. ;
  62. ; The FacilityNames keyword defines the set of names that are allowed
  63. ; as the value of the Facility keyword in the message definition. The
  64. ; set is delimited by left and right parentheses. Associated with each
  65. ; facility name is a number that, when shift it left by 16 bits, gives
  66. ; the bit pattern to logical-OR with the Severity value and MessageId
  67. ; value to form the full 32-bit message code. The default value of
  68. ; this keyword is:
  69. ;
  70. ; FacilityNames=(
  71. ;   System=0x0FF
  72. ;   Application=0xFFF
  73. ;   )
  74. ;
  75. ; Facility codes occupy the low order 12 bits of the high order
  76. ; 16-bits of a 32-bit message code. Any facility code that does not
  77. ; fit in 12 bits is an error. This allows for 4,096 facility codes.
  78. ; The first 256 codes are reserved for use by the system software. The
  79. ; facility codes can be given symbolic names by following each value
  80. ; with :name
  81. ;
  82. ;
  83. ; The LanguageNames keyword defines the set of names that are allowed
  84. ; as the value of the Language keyword in the message definition. The
  85. ; set is delimited by left and right parentheses. Associated with each
  86. ; language name is a number and a file name that are used to name the
  87. ; generated resource file that contains the messages for that
  88. ; language. The number corresponds to the language identifier to use
  89. ; in the resource table. The number is separated from the file name
  90. ; with a colon.
  91. ;
  92. LanguageNames=(English=0x409:MSG00409)
  93. LanguageNames=(Japanese=0x411:MSG00411)
  94. ;
  95. ; Any new names in the source file which don't override the built-in
  96. ; names are added to the list of valid languages. This allows an
  97. ; application to support private languages with descriptive names.
  98. ;
  99. ;
  100. ;-------------------------------------------------------------------------
  101. ; MESSAGE DEFINITION SECTION
  102. ;
  103. ; Following the header section is the body of the Message Compiler
  104. ; source file. The body consists of zero or more message definitions.
  105. ; Each message definition begins with one or more of the following
  106. ; statements:
  107. ;
  108. ; MessageId = [number|+number]
  109. ; Severity = severity_name
  110. ; Facility = facility_name
  111. ; SymbolicName = name
  112. ;
  113. ; The MessageId statement marks the beginning of the message
  114. ; definition. A MessageID statement is required for each message,
  115. ; although the value is optional. If no value is specified, the value
  116. ; used is the previous value for the facility plus one. If the value
  117. ; is specified as +number then the value used is the previous value
  118. ; for the facility, plus the number after the plus sign. Otherwise, if
  119. ; a numeric value is given, that value is used. Any MessageId value
  120. ; that does not fit in 16 bits is an error.
  121. ;
  122. ; The Severity and Facility statements are optional. These statements
  123. ; specify additional bits to OR into the final 32-bit message code. If
  124. ; not specified they default to the value last specified for a message
  125. ; definition. The initial values prior to processing the first message
  126. ; definition are:
  127. ;
  128. ; Severity=Success
  129. ; Facility=Application
  130. ;
  131. ; The value associated with Severity and Facility must match one of
  132. ; the names given in the FacilityNames and SeverityNames statements in
  133. ; the header section. The SymbolicName statement allows you to
  134. ; associate a C/C++ symbolic constant with the final 32-bit message
  135. ; code.
  136. ; */
  137.  
  138. MessageId=0x1
  139. Severity=Error
  140. Facility=Runtime
  141. SymbolicName=MSG_BAD_COMMAND
  142. Language=English
  143. You have chosen an incorrect command.
  144. .
  145. Language=Japanese
  146. òsÉ│é╚âRâ}âôâh鬿Iæ≡é│éΩé▄é╡é╜.
  147. .
  148.  
  149. MessageId=0x2
  150. Severity=Warning
  151. Facility=Io
  152. SymbolicName=MSG_BAD_PARM1
  153. Language=English
  154. Cannot reconnect to the server.
  155. .
  156. Language=Japanese
  157. âTü[âoü[é╓ì─É┌æ▒é┼é½é▄é╣é±.
  158. .
  159.  
  160. MessageId=0x3
  161. Severity=Success
  162. Facility=System
  163. SymbolicName=MSG_STRIKE_ANY_KEY
  164. Language=English
  165. Press any key to continue . . . %0
  166. .
  167. Language=Japanese
  168. æ▒é»éΘé╔é═ë╜é⌐âLü[é≡ëƒé╡é─é¡é╛é│éó . . . %0
  169. .
  170.  
  171. MessageId=0x4
  172. Severity=Error
  173. Facility=System
  174. SymbolicName=MSG_CMD_DELETE
  175. Language=English
  176. File %1 contains %2 which is in error
  177. .
  178. Language=Japanese
  179. âtâ@âCâï %1 Æåé╔è▄é▄éΩéΘ %2 é═âGâëü[é┼é╖
  180. .
  181.  
  182. MessageId=0x5
  183. Severity=Success
  184. Facility=System
  185. SymbolicName=MSG_RETRYS
  186. Language=English
  187. There have been %1!d! retrys with %2!d!%% success%! Disconnect from% 
  188. the server and retry later.
  189. .
  190. Language=Japanese
  191. %1!d! ë±É┌æ▒é≡ÄÄé▌é▄é╡é╜鬠%2!d!%% é╠ɼî≈ùªé┼é╡é╜%!.
  192. âTü[âoü[é╞É╪Æfé╡é╜îπüAì─É┌æ▒é╡é─é¡é╛é│éó.
  193. .
  194.