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"
See Also
- DCC32.EXE, the Delphi Command Line Compiler
- DCC64.EXE, the Delphi 64-bit Command Line Compiler
- DCCOSX.EXE, the Delphi Compiler for OS X
- DCCIOS32.EXE, the Delphi Compiler for the iOS Simulator
- DCCIOSARM.EXE, the Delphi Compiler for the 32-bit iOS Device
- DCCIOSARM64.EXE, the Delphi Compiler for the 64-bit iOS Device