This site is temporarily down. Please come back. Retrieve DFM files from the EXEcutable
DelphiFAQ Home Search:

Retrieve DFM files from the EXEcutable


comments3 comments. Current rating: 5 stars (2 votes). Leave comments and/ or rate it.

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.
Content-type: text/html


2008-12-15, 10:09:56 from Damascus, Syrian Arab Republic  
how cam i save and load component and all children

2009-07-27, 09:55:51
anonymous from Mexico  
Thanks a lot!
2017-04-20, 13:39:56
anonymous from Netherlands  



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: