V
V
VlLight2022-03-04 14:14:42
Delphi
VlLight, 2022-03-04 14:14:42

Is it possible to edit the .dpl file and how?

There is an application in Delphi (some kind of old one) that I want to change a little, and there are no source codes.
The application displays the data it pulls from the database into a form; I want to add more fields. There is an opportunity to add fields in the form and bind them to the database fields, the form is made by a template in html. The SELECT query to the database, which takes the data for the form, is in a file with the dpl extension, a line in the resources. If I change the request in dpl with a hex editor (for the test I change the name of an existing database column) - it works, I get the data in a new field in the form. But in reality, the query needs to be decently changed by adding new columns. I tried to change the line in PE Explorer and Resource Hacker, alas, the program does not work with the changed dpl. Are there any other ways to change the line in dpl?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Hemul GM, 2022-03-04
@VlLight

You can't do anything without sources. Maximum - disassemble. And this is a thankless job and not effective. It's faster to write from scratch.
You can add fields to the form through the resource editor, but you can't put them in the code. They will not be created. Well, you can forget about changing the formation of a request to the database.
Apparently there is not a big program, which will take a couple of hours of work to remake.

K
Konstantin Tsvetkov, 2022-03-04
@tsklab

If you change the request in dpl with a hex editor
And you can change it on the server side. To do this, use representations, aliases and synonyms.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question