[SOLVED] Error: Can't open resource file lazarus / 21-General ---------------------------------------------------------------------- finalist · 2022-03-07 22:46 I have converted a Delphi 10.3 project to Lazarus 2.2.0 project. Trying to compile there appears an error: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Error: Can't open resource file "F:\LAZARUS\Finch_LAZ\quest.dfm"There is a file "F:\LAZARUS\Finch_LAZ\quest.lfm", I can read content of quest.lfm when I click right mouse button on the Form_Quest and then click on: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i View source (.lfm) How to avoid above error ? ---------------------------------------------------------------------- wp · 2022-03-07 23:40 Does the related unit file, quest.pas, contain a line {$R *.dfm} as needed by Delphi (usually at the top of the implementation section)? Change it to {$R *.lfm} because your form file is quest.lfm rather than quest.dfm. ---------------------------------------------------------------------- finalist · 2022-03-07 23:44 Quote from: wp on March 08, 2022, 12:40:07 amDoes the related unit file, quest.pas, contain a line {$R *.dfm} as needed by Delphi (usually at the top of the implementation section)? Change it to {$R *.lfm} because your form file is quest.lfm rather than quest.dfm. Thanks wp! Your advice solved my problem.