CLI
- Multiple options can be specified at a time, e.g.
/vnl409gets resolved as if it were/v /n /l409. - The
/sloption (‘Specify the resource string length limit in percentage’) must be between 1 and 100 (if specified). If it’s set to 100, the maximum length of a string literal becomes 8192.- The
rctool will crash if/sl 100is set and there is a string literal with exactly 8193 characters in it. If one more character is added to the string literal, it errors with ‘string literal too long’. - The default maximum string literal length (if
/slis not specified) is 4097. If/sl 50is specified, the maximum string literal length becomes 4096 rather than 4097. So, there’s no/slsetting that’s equivalent to the default string literal length limit. - If
/sl 33is set, the maximum string literal length becomes 2703 (8192 * 0.33 = 2,703.36). 2704 chars will error withstring literal too long. - If
/sl 15is set, the maximum string literal length becomes 1228 (8192 * 0.15 = 1,228.8). 1229 chars will error withstring literal too long.
- The
Undocumented options
/aseems to be a recognized option but it’s unclear what it does and is totally undocumented AFAICT- Either one of
/?cor/hcwill add a normally hidden ‘Comments extracting switches:’ section to the help menu, with/tand/t-prefixed options dealing with.LCXand.LCEfiles. Can find no info about any of this online. A generated.LCEfile seems to be an XML file with some info about the comments and resources in the.rcfile(s). /pwill output the preprocessed version of the.rcfile to<filename>.rcppinstead of outputting a.resfile (i.e. it will only run the preprocessor).- There doesn’t appear to be any way to control the name of the
.rcppfile (/fodoes not affect it)
- There doesn’t appear to be any way to control the name of the
/s <unknown>will insert a bunch of resources with nameHWBinto the.res. I can’t find any info on this except a note on this page saying thatHWBis a resource name that is reserved by Visual Studio. The option seems to need a value but the value doesn’t seem to have any affect on the.rescontents and it seems to accept any value without complaint./zseems to always error withfatal error RC1212: invalid option - /z argument missing substitute font name. Not sure what type of value it’s looking for, or what it would affect if it were provided a valid value.- A value with
/in it seems to get past theargument missing substitute font nameerror and will allowrc.exeto compile successfully.
- A value with