1WINDMC(1)                    GNU Development Tools                   WINDMC(1)
2
3
4

NAME

6       windmc - generates Windows message resources.
7

SYNOPSIS

DESCRIPTION

10       windmc reads message definitions from an input file (.mc) and translate
11       them into a set of output files.  The output files may be of four
12       kinds:
13
14       "h" A C header file containing the message definitions.
15
16       "rc"
17           A resource file compilable by the windres tool.
18
19       "bin"
20           One or more binary files containing the resource data for a
21           specific message language.
22
23       "dbg"
24           A C include file that maps message id's to their symbolic name.
25
26       The exact description of these different formats is available in
27       documentation from Microsoft.
28
29       When windmc converts from the "mc" format to the "bin" format, "rc",
30       "h", and optional "dbg" it is acting like the Windows Message Compiler.
31

OPTIONS

33       -a
34       --ascii_in
35           Specifies that the input file specified is ANSI. This is the
36           default behaviour.
37
38       -A
39       --ascii_out
40           Specifies that messages in the output "bin" files should be in ANSI
41           format.
42
43       -b
44       --binprefix
45           Specifies that "bin" filenames should have to be prefixed by the
46           basename of the source file.
47
48       -c
49       --customflag
50           Sets the customer bit in all message id's.
51
52       -C codepage
53       --codepage_in codepage
54           Sets the default codepage to be used to convert input file to
55           UTF16. The default is ocdepage 1252.
56
57       -d
58       --decimal_values
59           Outputs the constants in the header file in decimal. Default is
60           using hexadecimal output.
61
62       -e ext
63       --extension ext
64           The extension for the header file. The default is .h extension.
65
66       -F target
67       --target target
68           Specify the BFD format to use for a bin file as output.  This is a
69           BFD target name; you can use the --help option to see a list of
70           supported targets.  Normally windmc will use the default format,
71           which is the first one listed by the --help option.
72
73       -h path
74       --headerdir path
75           The target directory of the generated header file. The default is
76           the current directory.
77
78       -H
79       --help
80           Displays a list of command line options and then exits.
81
82       -m characters
83       --maxlength characters
84           Instructs windmc to generate a warning if the length of any message
85           exceeds the number specified.
86
87       -n
88       --nullterminate
89           Terminate message text in "bin" files by zero. By default they are
90           terminated by CR/LF.
91
92       -o
93       --hresult_use
94           Not yet implemented. Instructs "windmc" to generate an OLE2 header
95           file, using HRESULT definitions. Status codes are used if the flag
96           is not specified.
97
98       -O codepage
99       --codepage_out codepage
100           Sets the default codepage to be used to output text files. The
101           default is ocdepage 1252.
102
103       -r path
104       --rcdir path
105           The target directory for the generated "rc" script and the
106           generated "bin" files that the resource compiler script includes.
107           The default is the current directory.
108
109       -u
110       --unicode_in
111           Specifies that the input file is UTF16.
112
113       -U
114       --unicode_out
115           Specifies that messages in the output "bin" file should be in UTF16
116           format. This is the default behaviour.
117
118       -v
119       --verbose
120           Enable verbose mode.
121
122       -V
123       --version
124           Prints the version number for windmc.
125
126       -x path
127       --xdgb path
128           The path of the "dbg" C include file that maps message id's to the
129           symbolic name. No such file is generated without specifying the
130           switch.
131
132       @file
133           Read command-line options from file.  The options read are inserted
134           in place of the original @file option.  If file does not exist, or
135           cannot be read, then the option will be treated literally, and not
136           removed.
137
138           Options in file are separated by whitespace.  A whitespace
139           character may be included in an option by surrounding the entire
140           option in either single or double quotes.  Any character (including
141           a backslash) may be included by prefixing the character to be
142           included with a backslash.  The file may itself contain additional
143           @file options; any such options will be processed recursively.
144

SEE ALSO

146       the Info entries for binutils.
147
149       Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
150       2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free
151       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.20                     2009-10-16                         WINDMC(1)
Impressum