Discussion Locked

Delphi 5.01: .dfm not found

0 helpful
4 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have several packages in my application which I want to distribute. I am not shipping source, just .dcu and the .bpl files.

The problem I'm having is that if the application is compiled without runtime packages, the linker barfs because it wants the .dfm files, even though they are in the .bpl file.

I don't want to ship the .dfm's.

If the application is compiled with runtime packages, then everything works fine, so obviously the .dfm's are available, although of course they are being linked in dynamically rather than statically.

Anybody got suggestions?

4 replies

by jeng

I don't believe that there's a way to distribute without the .dfms.

However, if you want to "somewhat" protect the viewing the source of your .dfm files, you can use "convert" supplied with Delphi to make your .dfm files into binary form (or you can save and work with them in binary form via the Delphi IDE - right click your form/datamodule, and uncheck Text DFM). Though, if the end user has Delphi available, they could un-convert your .dfms back to text.

by leebrown

Well they can also use a resource ripper directly on the .exe, so I'm not adversely worried, it's just a real pain for development and distribution. I'm now looking at having the .dfm's in a separate directory so that I can compile my distributed applications against the .dfm directory, the .dcu's come from another directory and the source is in a third. Sheesh, there's gotta be a more logical way to do this.

by rayval

Well, I also had that problem before. What I did was to put the bpl files in the C:\Windows\System directory, and it worked perfectly.

I hope this works.

This discussion is closed to new replies.