DelphiFAQ Home Search:
General :: Programming :: Delphi :: Delphi IDE
Information about the Delphi IDE, add-in experts and wizards.


This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Only the 40 most recently viewed articles are shown.
You can see the full list here.

Featured Article

Retrieve DFM files from the EXEcutable

Rick Rogers explains:
Delphi Form Files (.dfm) are stored as normal Windows binary
resources (rcData) in your executable. Examples of other resources
in an .exe: bitmaps, cursors, icons, and strings.

You can use a utility such as Resource Workshop, or the Resource
Explorer demo application which comes with D3 (demos\resxplor),
to extract any resource from an .exe into a separate file. This means
you could easily extract a .dfm resource from the .exe into a separate

You can also use the Delphi TResourceStream class to access
resource data as a stream, and you can easily copy a resource stream
to another stream, such as a file stream or memory stream.

Once you have extracted the .dfm from the .exe, you can use .dfm
utility procedures such as ObjectBinaryToText, ObjectTextToBinary,
ReadComponentResFile, WriteComponentResFile,
TStream.ReadComponent, TStream.WriteComponent, etc., to
manipulate the .DFM.

Generated 0:01:41 on May 26, 2017