I cannot include the version number in this old Delphi project that I inherited. How to fix it?

I have an old Delphi database that I have to support, many DLLs, somewhat older than others. Some of these DLLs do not have version information in the Project Settings dialog box. The controls for adding a version are grayed out, and I can’t even add a version number by manually editing the .DOF file. How to include version number in these projects?

+5
source share
5 answers

Verify that a default .RES file exists in the project’s source location. Delphi includes the version number of the project in the .res file with the same name as the .dpr file. If the .RES file does not exist, the easiest way to recreate it is to add the compiler directive {$ R * .RES} to the .DPR file immediately after the uses clause.

library foolib;    

uses
    foo in 'foo.pas',
    baz in 'baz.pas';

{$R *.RES}

exports
    foofunc name 'foofunc';

end;

As soon as you add the compiler {$ R * .RES} directive, Delphi will inform you that it recreated the foolib.res resource file.

+10
source

It seems that the resource directive is {$R *.RES}missing (or enclosed in conditional definitions) in your .dpr file so that the ID environment does not find it.

+6
source
+2

(FinalBuilder) DLL EXE, . , . Delphi, , FB .

0

dll . lib_suffix, .

0

All Articles