1WINDMC(1) GNU Development Tools WINDMC(1)
2
3
4
6 windmc - generates Windows message resources.
7
9 windmc [options] input-file
10
12 windmc reads message definitions from an input file (.mc) and translate
13 them into a set of output files. The output files may be of four
14 kinds:
15
16 "h" A C header file containing the message definitions.
17
18 "rc"
19 A resource file compilable by the windres tool.
20
21 "bin"
22 One or more binary files containing the resource data for a
23 specific message language.
24
25 "dbg"
26 A C include file that maps message id's to their symbolic name.
27
28 The exact description of these different formats is available in
29 documentation from Microsoft.
30
31 When windmc converts from the "mc" format to the "bin" format, "rc",
32 "h", and optional "dbg" it is acting like the Windows Message Compiler.
33
35 -a
36 --ascii_in
37 Specifies that the input file specified is ASCII. This is the
38 default behaviour.
39
40 -A
41 --ascii_out
42 Specifies that messages in the output "bin" files should be in
43 ASCII format.
44
45 -b
46 --binprefix
47 Specifies that "bin" filenames should have to be prefixed by the
48 basename of the source file.
49
50 -c
51 --customflag
52 Sets the customer bit in all message id's.
53
54 -C codepage
55 --codepage_in codepage
56 Sets the default codepage to be used to convert input file to
57 UTF16. The default is ocdepage 1252.
58
59 -d
60 --decimal_values
61 Outputs the constants in the header file in decimal. Default is
62 using hexadecimal output.
63
64 -e ext
65 --extension ext
66 The extension for the header file. The default is .h extension.
67
68 -F target
69 --target target
70 Specify the BFD format to use for a bin file as output. This is a
71 BFD target name; you can use the --help option to see a list of
72 supported targets. Normally windmc will use the default format,
73 which is the first one listed by the --help option.
74
75 -h path
76 --headerdir path
77 The target directory of the generated header file. The default is
78 the current directory.
79
80 -H
81 --help
82 Displays a list of command-line options and then exits.
83
84 -m characters
85 --maxlength characters
86 Instructs windmc to generate a warning if the length of any message
87 exceeds the number specified.
88
89 -n
90 --nullterminate
91 Terminate message text in "bin" files by zero. By default they are
92 terminated by CR/LF.
93
94 -o
95 --hresult_use
96 Not yet implemented. Instructs "windmc" to generate an OLE2 header
97 file, using HRESULT definitions. Status codes are used if the flag
98 is not specified.
99
100 -O codepage
101 --codepage_out codepage
102 Sets the default codepage to be used to output text files. The
103 default is ocdepage 1252.
104
105 -r path
106 --rcdir path
107 The target directory for the generated "rc" script and the
108 generated "bin" files that the resource compiler script includes.
109 The default is the current directory.
110
111 -u
112 --unicode_in
113 Specifies that the input file is UTF16.
114
115 -U
116 --unicode_out
117 Specifies that messages in the output "bin" file should be in UTF16
118 format. This is the default behaviour.
119
120 -v
121 --verbose
122 Enable verbose mode.
123
124 -V
125 --version
126 Prints the version number for windmc.
127
128 -x path
129 --xdgb path
130 The path of the "dbg" C include file that maps message id's to the
131 symbolic name. No such file is generated without specifying the
132 switch.
133
134 @file
135 Read command-line options from file. The options read are inserted
136 in place of the original @file option. If file does not exist, or
137 cannot be read, then the option will be treated literally, and not
138 removed.
139
140 Options in file are separated by whitespace. A whitespace
141 character may be included in an option by surrounding the entire
142 option in either single or double quotes. Any character (including
143 a backslash) may be included by prefixing the character to be
144 included with a backslash. The file may itself contain additional
145 @file options; any such options will be processed recursively.
146
148 the Info entries for binutils.
149
151 Copyright (c) 1991-2019 Free Software Foundation, Inc.
152
153 Permission is granted to copy, distribute and/or modify this document
154 under the terms of the GNU Free Documentation License, Version 1.3 or
155 any later version published by the Free Software Foundation; with no
156 Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
157 Texts. A copy of the license is included in the section entitled "GNU
158 Free Documentation License".
159
160
161
162binutils-2.31.90 2019-01-19 WINDMC(1)