Standard preamble:
========================================================================
..
.... Set up some character translations and predefined strings. \*(-- will
give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
double quote, and \*(R" will give a right double quote. \*(C+ will
give a nicer C++. Capital omega is used to do unbreakable dashes and
therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
nothing in troff, for use with C<>.
.tr \(*W- . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . 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
Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
Fear. Run. Save yourself. No user-serviceable parts.
. \" fudge factors for nroff and troff . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] .\} . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents . \" corrections for vroff . \" for low resolution devices (crt and lpr) \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} ========================================================================
Title "WINDRES 1"
way too many mistakes in technical documents.
The exact description of these different formats is available in documentation from Microsoft.
When windres converts from the \*(C`rc\*(C' format to the \*(C`res\*(C' format, it is acting like the Windows Resource Compiler. When \fBwindres converts from the \*(C`res\*(C' format to the \*(C`coff\*(C' format, it is acting like the Windows \*(C`CVTRES\*(C' program.
When windres generates an \*(C`rc\*(C' file, the output is similar but not identical to the format expected for the input. When an input \f(CW\*(C`rc\*(C' file refers to an external filename, an output \*(C`rc\*(C' file will instead include the file contents.
If the input or output format is not specified, windres will guess based on the file name, or, for the input file, the file contents. A file with an extension of .rc will be treated as an \*(C`rc\*(C' file, a file with an extension of .res will be treated as a \f(CW\*(C`res\*(C' file, and a file with an extension of .o or \fI.exe will be treated as a \*(C`coff\*(C' file.
If no output file is specified, windres will print the resources in \*(C`rc\*(C' format to standard output.
The normal use is for you to write an \*(C`rc\*(C' file, use windres to convert it to a \s-1COFF\s0 object file, and then link the \s-1COFF\s0 file into your application. This will make the resources described in the \f(CW\*(C`rc\*(C' file available to Windows.
0
The name of the input file. If this option is not used, then \fBwindres will use the first non-option argument as the input file name. If there are no non-option arguments, then windres will read from standard input. windres can not read a \s-1COFF\s0 file from standard input.
0
The name of the output file. If this option is not used, then \fBwindres will use the first non-option argument, after any used for the input file name, as the output file name. If there is no non-option argument, then windres will write to standard output. \fBwindres can not write a \s-1COFF\s0 file to standard output. Note, for compatibility with rc the option -fo is also accepted, but its use is not recommended.
0
The input format to read. format may be res, rc, or \fBcoff. If no input format is specified, windres will guess, as described above.
0
The output format to generate. format may be res, \fBrc, or coff. If no output format is specified, \fBwindres will guess, as described above.
0
Specify the \s-1BFD\s0 format to use for a \s-1COFF\s0 file as input or output. This is a \s-1BFD\s0 target name; you can use the --help option to see a list of supported targets. Normally windres will use the default format, which is the first one listed by the --help option.
0
Specify an include directory to use when reading an \*(C`rc\*(C' file. \fBwindres will pass this to the preprocessor as an -I option. windres will also search this directory when looking for files named in the \*(C`rc\*(C' file. If the argument passed to this command matches any of the supported formats (as described in the -J option), it will issue a deprecation warning, and behave just like the \fB-J option. New programs should not use this behaviour. If a directory happens to match a format, simple prefix it with ./ to disable the backward compatibility.
0
Specify a -D option to pass to the preprocessor when reading an \f(CW\*(C`rc\*(C' file.
0
Specify a -U option to pass to the preprocessor when reading an \f(CW\*(C`rc\*(C' file.
0
Specify the default codepage to use when reading an \*(C`rc\*(C' file. \fIval should be a hexadecimal prefixed by 0x or decimal codepage code. The valid range is from zero up to 0xffff, but the validity of the codepage is host and configuration dependent.
0
Specify the default language to use when reading an \*(C`rc\*(C' file. \fIval should be a hexadecimal language code. The low eight bits are the language, and the high eight bits are the sublanguage.
0
Prints a usage summary.
0
Prints the version number for windres.
Permission is granted to copy, distribute and/or modify this document under the terms of the \s-1GNU\s0 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 \*(L"\s-1GNU\s0 Free Documentation License\*(R".