Home | History | Annotate | Line # | Download | only in doc
 -*- mode: troff; coding: utf-8 -*-
Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45)

Standard preamble:
========================================================================
..
..
.. \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
. ds C` "" . ds C' "" 'br\} . ds C` . ds C' 'br\}
Escape single quotes in literal strings from groff's Unicode transform.

If the F register is >0, we'll generate index entries on stderr for
titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
entries marked with X<> in POD. Of course, you'll have to process the
output yourself in some meaningful fashion.

Avoid warning from groff about undefined register 'F'.
.. .nr rF 0 . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF
Required to disable full justification in groff 1.23.0.
========================================================================

Title "WINDMC 1"
WINDMC 1 2025-07-27 binutils-2.45 "GNU Development Tools"
For nroff, turn off justification. Always turn off hyphenation; it makes
way too many mistakes in technical documents.
.nh
NAME
windmc - generates Windows message resources
SYNOPSIS
Header "SYNOPSIS" windmc [options] input-file
DESCRIPTION
Header "DESCRIPTION" \fBwindmc reads message definitions from an input file (.mc) and translate them into a set of output files. The output files may be of four kinds: Item "h" A C header file containing the message definitions. Item "rc" A resource file compilable by the windres tool. Item "bin" One or more binary files containing the resource data for a specific message language. Item "dbg" A C include file that maps message id\*(Aqs to their symbolic name.

The exact description of these different formats is available in documentation from Microsoft.

When windmc converts from the \*(C`mc\*(C' format to the \*(C`bin\*(C' format, \*(C`rc\*(C', \*(C`h\*(C', and optional \*(C`dbg\*(C' it is acting like the Windows Message Compiler.

OPTIONS
Header "OPTIONS"
-a 4
Item "-a"

0

--ascii_in 4
Item "--ascii_in"

Specifies that the input file specified is ASCII. This is the default behaviour.

-A 4
Item "-A"

0

--ascii_out 4
Item "--ascii_out"

Specifies that messages in the output \*(C`bin\*(C' files should be in ASCII format.

-b 4
Item "-b"

0

--binprefix 4
Item "--binprefix"

Specifies that \*(C`bin\*(C' filenames should have to be prefixed by the basename of the source file.

-c 4
Item "-c"

0

--customflag 4
Item "--customflag"

Sets the customer bit in all message id\*(Aqs.

"-C codepage" 4
Item "-C codepage"

0

"--codepage_in codepage" 4
Item "--codepage_in codepage"

Sets the default codepage to be used to convert input file to UTF16. The default is ocdepage 1252.

-d 4
Item "-d"

0

--decimal_values 4
Item "--decimal_values"

Outputs the constants in the header file in decimal. Default is using hexadecimal output.

"-e ext" 4
Item "-e ext"

0

"--extension ext" 4
Item "--extension ext"

The extension for the header file. The default is .h extension.

"-F target" 4
Item "-F target"

0

"--target target" 4
Item "--target target"

Specify the BFD format to use for a bin file as output. This is a BFD target name; you can use the --help option to see a list of supported targets. Normally windmc will use the default format, which is the first one listed by the --help option.

"-h path" 4
Item "-h path"

0

"--headerdir path" 4
Item "--headerdir path"

The target directory of the generated header file. The default is the current directory.

-H 4
Item "-H"

0

--help 4
Item "--help"

Displays a list of command-line options and then exits.

"-m characters" 4
Item "-m characters"

0

"--maxlength characters" 4
Item "--maxlength characters"

Instructs windmc to generate a warning if the length of any message exceeds the number specified.

-n 4
Item "-n"

0

--nullterminate 4
Item "--nullterminate"

Terminate message text in \*(C`bin\*(C' files by zero. By default they are terminated by CR/LF.

-o 4
Item "-o"

0

--hresult_use 4
Item "--hresult_use"

Not yet implemented. Instructs \*(C`windmc\*(C' to generate an OLE2 header file, using HRESULT definitions. Status codes are used if the flag is not specified.

"-O codepage" 4
Item "-O codepage"

0

"--codepage_out codepage" 4
Item "--codepage_out codepage"

Sets the default codepage to be used to output text files. The default is ocdepage 1252.

"-r path" 4
Item "-r path"

0

"--rcdir path" 4
Item "--rcdir path"

The target directory for the generated \*(C`rc\*(C' script and the generated \f(CW\*(C`bin\*(C' files that the resource compiler script includes. The default is the current directory.

-u 4
Item "-u"

0

--unicode_in 4
Item "--unicode_in"

Specifies that the input file is UTF16.

-U 4
Item "-U"

0

--unicode_out 4
Item "--unicode_out"

Specifies that messages in the output \*(C`bin\*(C' file should be in UTF16 format. This is the default behaviour.

-v 4
Item "-v"

0

--verbose 4
Item "--verbose"

Enable verbose mode.

-V 4
Item "-V"

0

--version 4
Item "--version"

Prints the version number for windmc.

"-x path" 4
Item "-x path"

0

"--xdgb path" 4
Item "--xdgb path"

The path of the \*(C`dbg\*(C' C include file that maps message id\*(Aqs to the symbolic name. No such file is generated without specifying the switch.

@file 4
Item "@file" Read command-line options from file. The options read are inserted in place of the original @file option. If file does not exist, or cannot be read, then the option will be treated literally, and not removed. .Sp Options in file are separated by whitespace. A whitespace character may be included in an option by surrounding the entire option in either single or double quotes. Any character (including a backslash) may be included by prefixing the character to be included with a backslash. The file may itself contain additional @file options; any such options will be processed recursively.
"SEE ALSO"
Header "SEE ALSO" the Info entries for binutils.
COPYRIGHT
Header "COPYRIGHT" Copyright (c) 1991-2025 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".