Radialix Sofware

  • Decrease font size
  • Default font size
  • Increase font size
Home Resource Tools rt_check
rt_check PDF Print E-mail

The rt_check utility finds unused Delphi/C++Builder resources and validates the format specifiers in the strings.

Command-line syntax:

rt_check filename option option ...

filename - path and name of the PE32, PE32+, RES file or .NET assembly.

If the file name contains spaces, it must be enclosed in quotes. Example:

rt_check "c:\test files\somefile.exe" -u -s

Running rt_check without parameters displays help on the command-line options.

Options:

  • -u - find and print unused Delphi/C++Builder resources. Unnused resources appear in the application because the Delphi/C++Builder compiler always includes the DFM resources included in the project with the $R directive, regardless of whether or not the class that corresponds with the DFM resource is actually used. rt_check extracts the list of classes from the file and checks whether there is a corresponding class for each DFM resource. If the class is missing, the resource is considered unused. This option is not supported for resource libraties and RES files.
  • -s - validates format specifiers for the functions print, printf, format, etc. This check is supported for the following resources:
    RT_STRINGS - С or Pascal-style specifiers, depending on the compiler that was used for the creation of the file. The compiler type is detected automatically.
    RT_DLGINIT - С-style specifiers
    RT_MESSAGETABLE - Message Table-style specifiers
  • -q - quiet mode.

Examples:

Find unused Delphi/C++Builder resources and validate format specifiers:

rt_check "c:\test files\somefile.exe" -u -s