Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recreating corrupted Delphi form

I've received source code for a utility I want to adapt, but it appears to have the .dfm files stored in binary format, and one of the .dfm files seems to be coRruPted. I also have the compiled .exe file.

Is there any way to extract the form from the .exe?

I can see from the relevant .pas file the form type declaration and the components on the form. How do I go about recreating the form from scratch, and 'attaching' it to the original .pas file?

like image 341
HMcG Avatar asked Dec 28 '22 01:12

HMcG


1 Answers

Try using XN Resource Editor to recover the DFM from the .exe.

like image 82
David Heffernan Avatar answered Dec 31 '22 14:12

David Heffernan