Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi 7 turn off creation of DDP files

Tags:

delphi

How do you turn off the feature or stop the creation of all the .ddp files for your Delphi 7 forms? I read something about removing the designdgm60.bpl, but is that the only way? It seems that there was another way I can't remember any longer.

Update: I tried renaming the designdgm70.bpl and that just creates a ton of program errors. Also, I'm using Delphi 7.2 on one computer and there is no design tab I can see unless its covered by something in CnWizards. 7.2 definitely creates the ddp files though.

like image 698
Chris Valentine Avatar asked Apr 26 '13 04:04

Chris Valentine


2 Answers

DDP files are for Delphi diagrams (DDP stands for Delphi Diagram Portfolio) in Delphi 6-7. Delphi 5 used the DTI extension for this.

DDP files can have meaningful information. They don't get compiled into .DCU/.EXE./... as they are for documentation purposes only.

Did you create diagrams of components on your form/datamodule? I used to do that (to explain structure to co-workers) so I was actually really happy with the DDP files.

Before deleting them, inspect them to see if they contain documentation you want to keep.

You can safely delete them if they are 51 bytes long and the TDUMP of it looks like this:

000000: 07 18 44 45 4C 50 48 49  2E 44 49 41 47 52 41 4D ..DELPHI.DIAGRAM
000010: 2E 50 4F 52 54 46 4F 4C  49 4F 0F 00 00 E0 40 02 .PORTFOLIO....@.
000020: 01 09 06 09 55 6E 74 69  74 6C 65 64 31 06 00 02 ....Untitled1...
000030: 00 02 00 00 00 00 00 00  00 00 00 00 00 00 00 00 ................
like image 184
Jeroen Wiert Pluimers Avatar answered Sep 30 '22 16:09

Jeroen Wiert Pluimers


I suppose that it's impossible to turn off .ddp creation in IDE by built-in methods, but DDevExtensions tool includes this option (File Cleaner)

like image 37
MBo Avatar answered Sep 30 '22 14:09

MBo