Solved

Recovering form definition...

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

761 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