Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

247 Zeilen
8.5KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1991-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3
  6. or any later version published by the Free Software Foundation;
  7. with no Invariant Sections, with no Front-Cover Texts, and with no
  8. Back-Cover Texts. A copy of the license is included in the
  9. section entitled "GNU Free Documentation License".
  10. -->
  11. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  12. <head>
  13. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  14. <title>windmc (GNU Binary Utilities)</title>
  15. <meta name="description" content="windmc (GNU Binary Utilities)">
  16. <meta name="keywords" content="windmc (GNU Binary Utilities)">
  17. <meta name="resource-type" content="document">
  18. <meta name="distribution" content="global">
  19. <meta name="Generator" content="makeinfo">
  20. <link href="index.html#Top" rel="start" title="Top">
  21. <link href="Binutils-Index.html#Binutils-Index" rel="index" title="Binutils Index">
  22. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  23. <link href="index.html#Top" rel="up" title="Top">
  24. <link href="windres.html#windres" rel="next" title="windres">
  25. <link href="addr2line.html#addr2line" rel="prev" title="addr2line">
  26. <style type="text/css">
  27. <!--
  28. a.summary-letter {text-decoration: none}
  29. blockquote.indentedblock {margin-right: 0em}
  30. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  31. blockquote.smallquotation {font-size: smaller}
  32. div.display {margin-left: 3.2em}
  33. div.example {margin-left: 3.2em}
  34. div.lisp {margin-left: 3.2em}
  35. div.smalldisplay {margin-left: 3.2em}
  36. div.smallexample {margin-left: 3.2em}
  37. div.smalllisp {margin-left: 3.2em}
  38. kbd {font-style: oblique}
  39. pre.display {font-family: inherit}
  40. pre.format {font-family: inherit}
  41. pre.menu-comment {font-family: serif}
  42. pre.menu-preformatted {font-family: serif}
  43. pre.smalldisplay {font-family: inherit; font-size: smaller}
  44. pre.smallexample {font-size: smaller}
  45. pre.smallformat {font-family: inherit; font-size: smaller}
  46. pre.smalllisp {font-size: smaller}
  47. span.nolinebreak {white-space: nowrap}
  48. span.roman {font-family: initial; font-weight: normal}
  49. span.sansserif {font-family: sans-serif; font-weight: normal}
  50. ul.no-bullet {list-style: none}
  51. -->
  52. </style>
  53. </head>
  54. <body lang="en">
  55. <a name="windmc"></a>
  56. <div class="header">
  57. <p>
  58. Next: <a href="windres.html#windres" accesskey="n" rel="next">windres</a>, Previous: <a href="addr2line.html#addr2line" accesskey="p" rel="prev">addr2line</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Binutils-Index.html#Binutils-Index" title="Index" rel="index">Index</a>]</p>
  59. </div>
  60. <hr>
  61. <a name="windmc-1"></a>
  62. <h2 class="chapter">11 windmc</h2>
  63. <p><code>windmc</code> may be used to generator Windows message resources.
  64. </p>
  65. <blockquote>
  66. <p><em>Warning:</em> <code>windmc</code> is not always built as part of the binary
  67. utilities, since it is only useful for Windows targets.
  68. </p></blockquote>
  69. <div class="smallexample">
  70. <pre class="smallexample">windmc [options] input-file
  71. </pre></div>
  72. <p><code>windmc</code> reads message definitions from an input file (.mc) and
  73. translate them into a set of output files. The output files may be of
  74. four kinds:
  75. </p>
  76. <dl compact="compact">
  77. <dt><code>h</code></dt>
  78. <dd><p>A C header file containing the message definitions.
  79. </p>
  80. </dd>
  81. <dt><code>rc</code></dt>
  82. <dd><p>A resource file compilable by the <code>windres</code> tool.
  83. </p>
  84. </dd>
  85. <dt><code>bin</code></dt>
  86. <dd><p>One or more binary files containing the resource data for a specific
  87. message language.
  88. </p>
  89. </dd>
  90. <dt><code>dbg</code></dt>
  91. <dd><p>A C include file that maps message id&rsquo;s to their symbolic name.
  92. </p></dd>
  93. </dl>
  94. <p>The exact description of these different formats is available in
  95. documentation from Microsoft.
  96. </p>
  97. <p>When <code>windmc</code> converts from the <code>mc</code> format to the <code>bin</code>
  98. format, <code>rc</code>, <code>h</code>, and optional <code>dbg</code> it is acting like the
  99. Windows Message Compiler.
  100. </p>
  101. <dl compact="compact">
  102. <dt><code>-a</code></dt>
  103. <dt><code>--ascii_in</code></dt>
  104. <dd><p>Specifies that the input file specified is ASCII. This is the default
  105. behaviour.
  106. </p>
  107. </dd>
  108. <dt><code>-A</code></dt>
  109. <dt><code>--ascii_out</code></dt>
  110. <dd><p>Specifies that messages in the output <code>bin</code> files should be in ASCII
  111. format.
  112. </p>
  113. </dd>
  114. <dt><code>-b</code></dt>
  115. <dt><code>--binprefix</code></dt>
  116. <dd><p>Specifies that <code>bin</code> filenames should have to be prefixed by the
  117. basename of the source file.
  118. </p>
  119. </dd>
  120. <dt><code>-c</code></dt>
  121. <dt><code>--customflag</code></dt>
  122. <dd><p>Sets the customer bit in all message id&rsquo;s.
  123. </p>
  124. </dd>
  125. <dt><code>-C <var>codepage</var></code></dt>
  126. <dt><code>--codepage_in <var>codepage</var></code></dt>
  127. <dd><p>Sets the default codepage to be used to convert input file to UTF16. The
  128. default is ocdepage 1252.
  129. </p>
  130. </dd>
  131. <dt><code>-d</code></dt>
  132. <dt><code>--decimal_values</code></dt>
  133. <dd><p>Outputs the constants in the header file in decimal. Default is using
  134. hexadecimal output.
  135. </p>
  136. </dd>
  137. <dt><code>-e <var>ext</var></code></dt>
  138. <dt><code>--extension <var>ext</var></code></dt>
  139. <dd><p>The extension for the header file. The default is .h extension.
  140. </p>
  141. </dd>
  142. <dt><code>-F <var>target</var></code></dt>
  143. <dt><code>--target <var>target</var></code></dt>
  144. <dd><p>Specify the BFD format to use for a bin file as output. This
  145. is a BFD target name; you can use the <samp>--help</samp> option to see a list
  146. of supported targets. Normally <code>windmc</code> will use the default
  147. format, which is the first one listed by the <samp>--help</samp> option.
  148. <a href="Target-Selection.html#Target-Selection">Target Selection</a>.
  149. </p>
  150. </dd>
  151. <dt><code>-h <var>path</var></code></dt>
  152. <dt><code>--headerdir <var>path</var></code></dt>
  153. <dd><p>The target directory of the generated header file. The default is the
  154. current directory.
  155. </p>
  156. </dd>
  157. <dt><code>-H</code></dt>
  158. <dt><code>--help</code></dt>
  159. <dd><p>Displays a list of command-line options and then exits.
  160. </p>
  161. </dd>
  162. <dt><code>-m <var>characters</var></code></dt>
  163. <dt><code>--maxlength <var>characters</var></code></dt>
  164. <dd><p>Instructs <code>windmc</code> to generate a warning if the length
  165. of any message exceeds the number specified.
  166. </p>
  167. </dd>
  168. <dt><code>-n</code></dt>
  169. <dt><code>--nullterminate</code></dt>
  170. <dd><p>Terminate message text in <code>bin</code> files by zero. By default they are
  171. terminated by CR/LF.
  172. </p>
  173. </dd>
  174. <dt><code>-o</code></dt>
  175. <dt><code>--hresult_use</code></dt>
  176. <dd><p>Not yet implemented. Instructs <code>windmc</code> to generate an OLE2 header
  177. file, using HRESULT definitions. Status codes are used if the flag is not
  178. specified.
  179. </p>
  180. </dd>
  181. <dt><code>-O <var>codepage</var></code></dt>
  182. <dt><code>--codepage_out <var>codepage</var></code></dt>
  183. <dd><p>Sets the default codepage to be used to output text files. The default
  184. is ocdepage 1252.
  185. </p>
  186. </dd>
  187. <dt><code>-r <var>path</var></code></dt>
  188. <dt><code>--rcdir <var>path</var></code></dt>
  189. <dd><p>The target directory for the generated <code>rc</code> script and the generated
  190. <code>bin</code> files that the resource compiler script includes. The default
  191. is the current directory.
  192. </p>
  193. </dd>
  194. <dt><code>-u</code></dt>
  195. <dt><code>--unicode_in</code></dt>
  196. <dd><p>Specifies that the input file is UTF16.
  197. </p>
  198. </dd>
  199. <dt><code>-U</code></dt>
  200. <dt><code>--unicode_out</code></dt>
  201. <dd><p>Specifies that messages in the output <code>bin</code> file should be in UTF16
  202. format. This is the default behaviour.
  203. </p>
  204. </dd>
  205. <dt><code>-v</code></dt>
  206. <dt><code>--verbose</code></dt>
  207. <dd><p>Enable verbose mode.
  208. </p>
  209. </dd>
  210. <dt><code>-V</code></dt>
  211. <dt><code>--version</code></dt>
  212. <dd><p>Prints the version number for <code>windmc</code>.
  213. </p>
  214. </dd>
  215. <dt><code>-x <var>path</var></code></dt>
  216. <dt><code>--xdgb <var>path</var></code></dt>
  217. <dd><p>The path of the <code>dbg</code> C include file that maps message id&rsquo;s to the
  218. symbolic name. No such file is generated without specifying the switch.
  219. </p></dd>
  220. </dl>
  221. <hr>
  222. <div class="header">
  223. <p>
  224. Next: <a href="windres.html#windres" accesskey="n" rel="next">windres</a>, Previous: <a href="addr2line.html#addr2line" accesskey="p" rel="prev">addr2line</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Binutils-Index.html#Binutils-Index" title="Index" rel="index">Index</a>]</p>
  225. </div>
  226. </body>
  227. </html>