title: Loading Bitmap From Resource
body: <p>I find a solution for Loading Bitmap From Resource file on <a href="https://stackoverflow.com/questions/18426914/how-to-store-images-in-firemonkey">How to store images in FireMonkey?</a> And I've tried to use it in my Firemonkey application, but it can't find Resource and raises an error "EresNotFound".
  My Resource .RC File Is Like This</p>
  
  <pre><code>Bitmap_1    BITMAP    "Test.bmp"
  </code></pre>
  
  <p>and my Code is </p>
  
  <pre><code>procedure Tform1.load_image_from_resource(var Im1: Timage; res_name: String);
  var InStream: TResourceStream;
  begin
    InStream := TResourceStream.Create(HInstance, res_name,RC_RTDATA);
    try
      Im1.Picture.Bitmap.LoadFromStream(InStream);
    finally
      InStream.Free;
    end;
  end;
  
  procedure TForm1.Button1Click(Sender: TObject);
  begin
    Load_image_from_resource(Image1,'Bitmap_1');
  end;
  </code></pre>
  
  <p>I also found a solution on the question <a href="https://stackoverflow.com/questions/4663303/delphi-2010-unable-to-find-resource-eresnotfound">Delphi 2010: unable to find resource - EResNotFound</a>.
  But it still doesn't find recource</p>