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.
source
share