Resource Not Found for firemonkey app

  

By user3376886 I am building a firemonkey mobile application.

I have gone to projects -> Resources and Images.

Added “statusled.png” and the identifier is “LedOff” type “RCDATA”

In my form2.FormShow procedure I have this:

procedure TForm2.FormShow(Sender: TObject);
var
jsonObj: TJSonObject;
T: TResourceStream;

litem: TListViewItem;
begin
T := TResourceStream.Create(HInstance, ‘LedOff’, ‘RT_RCDATA’);
offLed.Create;
offLed.LoadFromStream(T);
end;

When I run this and form2 opens I get “Resource LedOff not found” why is this? …read more

Via: StackOverflow

Comments are closed.