Executable extension (Delphi)
Go Up to Delphi Compiler Directives (List) Index
Type |
Parameter |
Syntax |
{$E extension} {$EXTENSION extension} |
The $E directive sets the extension of the executable file generated by the compiler. It is often used with the resource-only DLL mechanism.
For example, placing {$E deu} in a library module produces a DLL with a .deu extension: filename.deu. If you create a library module that simply references German forms and strings, you could use this directive to produce a DLL with the .deu extension. The startup code in the runtime library looks for a DLL whose extension matches the locale of the system for German settings, it looks for .de and loads resources from that DLL.
The -TX
command-line compiler option has the same effect as {$EXTENSION ext}
.
For example:
-TX.ext ; use ".ext" -TXext ; use "." + "ext"