Solved

Recovering form definition...

Posted on 2000-04-27
3
143 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need Delphi function to get Youtube video title 5 225
TVirtualStringTree  search using TEdit 7 106
Best Firemonkey component pack 1 87
Communication Between RC4 Delphi <-> PHP 3 100
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now