• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-armeabi-2013.11/share/doc/arm-arm-none-eabi/html/binutils.html/
1<html lang="en">
2<head>
3<title>windmc - GNU Binary Utilities</title>
4<meta http-equiv="Content-Type" content="text/html">
5<meta name="description" content="GNU Binary Utilities">
6<meta name="generator" content="makeinfo 4.13">
7<link title="Top" rel="start" href="index.html#Top">
8<link rel="prev" href="nlmconv.html#nlmconv" title="nlmconv">
9<link rel="next" href="windres.html#windres" title="windres">
10<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
11<!--
12Copyright (C) 1991-2013 Free Software Foundation, Inc.
13
14Permission is granted to copy, distribute and/or modify this document
15under the terms of the GNU Free Documentation License, Version 1.3
16or any later version published by the Free Software Foundation;
17with no Invariant Sections, with no Front-Cover Texts, and with no
18Back-Cover Texts.  A copy of the license is included in the
19section entitled ``GNU Free Documentation License''.
20
21-->
22<meta http-equiv="Content-Style-Type" content="text/css">
23<style type="text/css"><!--
24  pre.display { font-family:inherit }
25  pre.format  { font-family:inherit }
26  pre.smalldisplay { font-family:inherit; font-size:smaller }
27  pre.smallformat  { font-family:inherit; font-size:smaller }
28  pre.smallexample { font-size:smaller }
29  pre.smalllisp    { font-size:smaller }
30  span.sc    { font-variant:small-caps }
31  span.roman { font-family:serif; font-weight:normal; } 
32  span.sansserif { font-family:sans-serif; font-weight:normal; } 
33--></style>
34<link rel="stylesheet" type="text/css" href="../cs.css">
35</head>
36<body>
37<div class="node">
38<a name="windmc"></a>
39<p>
40Next:&nbsp;<a rel="next" accesskey="n" href="windres.html#windres">windres</a>,
41Previous:&nbsp;<a rel="previous" accesskey="p" href="nlmconv.html#nlmconv">nlmconv</a>,
42Up:&nbsp;<a rel="up" accesskey="u" href="index.html#Top">Top</a>
43<hr>
44</div>
45
46<h2 class="chapter">12 windmc</h2>
47
48<p><samp><span class="command">windmc</span></samp> may be used to generator Windows message resources.
49
50   <blockquote>
51<em>Warning:</em> <samp><span class="command">windmc</span></samp> is not always built as part of the binary
52utilities, since it is only useful for Windows targets. 
53</blockquote>
54
55<!-- man title windmc generates Windows message resources. -->
56<pre class="smallexample">     <!-- man begin SYNOPSIS windmc -->
57     windmc [options] input-file
58     <!-- man end -->
59</pre>
60   <!-- man begin DESCRIPTION windmc -->
61   <p><samp><span class="command">windmc</span></samp> reads message definitions from an input file (.mc) and
62translate them into a set of output files.  The output files may be of
63four kinds:
64
65     <dl>
66<dt><code>h</code><dd>A C header file containing the message definitions.
67
68     <br><dt><code>rc</code><dd>A resource file compilable by the <samp><span class="command">windres</span></samp> tool.
69
70     <br><dt><code>bin</code><dd>One or more binary files containing the resource data for a specific
71message language.
72
73     <br><dt><code>dbg</code><dd>A C include file that maps message id's to their symbolic name. 
74</dl>
75
76   <p>The exact description of these different formats is available in
77documentation from Microsoft.
78
79   <p>When <samp><span class="command">windmc</span></samp> converts from the <code>mc</code> format to the <code>bin</code>
80format, <code>rc</code>, <code>h</code>, and optional <code>dbg</code> it is acting like the
81Windows Message Compiler.
82
83<!-- man end -->
84<!-- man begin OPTIONS windmc -->
85     <dl>
86<dt><samp><span class="env">-a</span></samp><dt><samp><span class="env">--ascii_in</span></samp><dd>Specifies that the input file specified is ASCII. This is the default
87behaviour.
88
89     <br><dt><samp><span class="env">-A</span></samp><dt><samp><span class="env">--ascii_out</span></samp><dd>Specifies that messages in the output <code>bin</code> files should be in ASCII
90format.
91
92     <br><dt><samp><span class="env">-b</span></samp><dt><samp><span class="env">--binprefix</span></samp><dd>Specifies that <code>bin</code> filenames should have to be prefixed by the
93basename of the source file.
94
95     <br><dt><samp><span class="env">-c</span></samp><dt><samp><span class="env">--customflag</span></samp><dd>Sets the customer bit in all message id's.
96
97     <br><dt><samp><span class="env">-C </span><var>codepage</var></samp><dt><samp><span class="env">--codepage_in </span><var>codepage</var></samp><dd>Sets the default codepage to be used to convert input file to UTF16. The
98default is ocdepage 1252.
99
100     <br><dt><samp><span class="env">-d</span></samp><dt><samp><span class="env">--decimal_values</span></samp><dd>Outputs the constants in the header file in decimal. Default is using
101hexadecimal output.
102
103     <br><dt><samp><span class="env">-e </span><var>ext</var></samp><dt><samp><span class="env">--extension </span><var>ext</var></samp><dd>The extension for the header file. The default is .h extension.
104
105     <br><dt><samp><span class="env">-F </span><var>target</var></samp><dt><samp><span class="env">--target </span><var>target</var></samp><dd>Specify the BFD format to use for a bin file as output.  This
106is a BFD target name; you can use the <samp><span class="option">--help</span></samp> option to see a list
107of supported targets.  Normally <samp><span class="command">windmc</span></samp> will use the default
108format, which is the first one listed by the <samp><span class="option">--help</span></samp> option. 
109<a href="Target-Selection.html#Target-Selection">Target Selection</a>.
110
111     <br><dt><samp><span class="env">-h </span><var>path</var></samp><dt><samp><span class="env">--headerdir </span><var>path</var></samp><dd>The target directory of the generated header file. The default is the
112current directory.
113
114     <br><dt><samp><span class="env">-H</span></samp><dt><samp><span class="env">--help</span></samp><dd>Displays a list of command line options and then exits.
115
116     <br><dt><samp><span class="env">-m </span><var>characters</var></samp><dt><samp><span class="env">--maxlength </span><var>characters</var></samp><dd>Instructs <samp><span class="command">windmc</span></samp> to generate a warning if the length
117of any message exceeds the number specified.
118
119     <br><dt><samp><span class="env">-n</span></samp><dt><samp><span class="env">--nullterminate</span></samp><dd>Terminate message text in <code>bin</code> files by zero. By default they are
120terminated by CR/LF.
121
122     <br><dt><samp><span class="env">-o</span></samp><dt><samp><span class="env">--hresult_use</span></samp><dd>Not yet implemented. Instructs <code>windmc</code> to generate an OLE2 header
123file, using HRESULT definitions. Status codes are used if the flag is not
124specified.
125
126     <br><dt><samp><span class="env">-O </span><var>codepage</var></samp><dt><samp><span class="env">--codepage_out </span><var>codepage</var></samp><dd>Sets the default codepage to be used to output text files. The default
127is ocdepage 1252.
128
129     <br><dt><samp><span class="env">-r </span><var>path</var></samp><dt><samp><span class="env">--rcdir </span><var>path</var></samp><dd>The target directory for the generated <code>rc</code> script and the generated
130<code>bin</code> files that the resource compiler script includes. The default
131is the current directory.
132
133     <br><dt><samp><span class="env">-u</span></samp><dt><samp><span class="env">--unicode_in</span></samp><dd>Specifies that the input file is UTF16.
134
135     <br><dt><samp><span class="env">-U</span></samp><dt><samp><span class="env">--unicode_out</span></samp><dd>Specifies that messages in the output <code>bin</code> file should be in UTF16
136format. This is the default behaviour.
137
138     <br><dt><samp><span class="env">-v</span></samp><br><dt><samp><span class="env">--verbose</span></samp><dd>Enable verbose mode.
139
140     <br><dt><samp><span class="env">-V</span></samp><br><dt><samp><span class="env">--version</span></samp><dd>Prints the version number for <samp><span class="command">windmc</span></samp>.
141
142     <br><dt><samp><span class="env">-x </span><var>path</var></samp><dt><samp><span class="env">--xdgb </span><var>path</var></samp><dd>The path of the <code>dbg</code> C include file that maps message id's to the
143symbolic name. No such file is generated without specifying the switch. 
144</dl>
145
146<!-- man end -->
147   </body></html>
148
149