Solved

Recovering form definition...

Posted on 2000-04-27
3
149 Views
Last Modified: 2010-04-04
Does anyone know if it's possible to recover the definition of a form from an executable or .dcu? I've managed to destroy my dfm and I really don't want to have to start trying to remember how the controls were linked etc...

Any Ideas?

Cheers,

Adam...

P.S. If anyone knows of a way to do this I'd be willing to up the points if it works...
0
Comment
Question by:AJFleming
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
simonet earned 100 total points
ID: 2755377
If you have the executable, it's pretty easy. The only catch is: the application MUST NOT have been compressed by an EXE compressor (like ASPack or Compress).

Here's what to do:
1) Download Resource Explorer 1.5, from my site:
http://www.bhnet.com.br/~simonet/resexp.htm

2) Unzip resexp15.zip to a directory where you want it to be installed (there's no installer)

3) Run Resource Explorer 1.5 and open the executable from which you want to extract the form definition(s).

Delphi Form Definitions are stored as resources of type RC_DATA with the name of the form. All you have to do is to click on the appropriate resource type (RT_RCDATA) and select the form.

The text displayed is the same as the "View as Text" option of the Delphi IDE when working in the form Designer.

Copy the displayed text, open Delphi, Select New Form, right-click the new form, select "View as Text", paste the text copied from Resource Explorer and save the file in a new directory, different from the one where the .PAS file is.

Now simply move the newly created .DFM file to where the existing .PAS file is and you're all set.

>If anyone knows of a way to do this I'd be willing to up the points if it works...

IT's up to you! The method described above surely works!

Yours,

Alex
0
 
LVL 1

Author Comment

by:AJFleming
ID: 2800082
Adjusted points from 50 to 100
0
 
LVL 1

Author Comment

by:AJFleming
ID: 2800083
Sorry about the delay - just found the mail notifying me  of the response to this question...

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses
Course of the Month10 days, 17 hours left to enroll

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question