English English  Deutsch Deutsch

Definition Files

An external definition file is optionally used by RTC to define and represent the values for constants in the loaded target executable file. A more detailed description of the RTC definition file format and sample scripts can be found in the RTC Scripting Language Reference within the Resource Tuner Console package.

Defenition files are plain text files. You can create a definition file with any ASCII text editor and save it with any file extension. Its syntax is:

#define   ItemName  ItemValue


Example of Definition File
#define str_EntryNumber1 1
#define str_EntryNumber2 2
#define my_headerID      65406

Delphi developers can use .DRC files generated by the Delphi Pascal Compiler. These contain compiler-generated resources bound to the produced executable. If the Detailed Map option was enabled (Delphi Menu Project Options Linker Tab Map File select the "detailed" radio), they also would contain all strings with corresponding IDs.

For greater detail, see the Edit Strings sample script. It may be helpful to use this example as a template for your own scripts.



Sample Scripts
 Download Resource Tuner Console and learn how it can make you more productive.