logo
Tags down

shadow

Failed to extract files from Delphi resource file


By : user3851284
Date : October 17 2020, 11:12 AM
it fixes the issue If you're already calling LoadResource and LockResource, then you're already halfway there. LockResource gives you a pointer to the first byte of the resource data. Call SizeofResource to find out how many bytes are there, and you can do whatever you want with that block of memory, such as copy it to another block of memory or write it to a file.
code :


Share : facebook icon twitter icon

Delphi - Make a Delphi program that Self-extract a MIDI file


By : Alan_QT
Date : March 29 2020, 07:55 AM
With these it helps Create a new text file, and write: MIDI RCDATA 1.mid, save text file as MID.rc Then create a new text file, and write: brcc32 mid.rc, save it as "brcc.bat"
run the brcc.bat, to convert *.rc file to *.res Move MediaPlayer to your form (the media player is on the "System"tab). Now copy this code to Your project:
code :
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, MPlayer;

type
  TForm1 = class(TForm)
    mplayer: TMediaPlayer;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}
{$R mid.res}

procedure TForm1.FormCreate(Sender: TObject);
var
  stream:tresourcestream;
  tmp:string;
begin
  try
    stream:=tresourcestream.Create(hinstance,'MIDI',RT_RCDATA);
    try
      setlength(tmp,300);
      setlength(tmp,GetTempPath(300,pchar(tmp)));
      tmp:=tmp+inttostr(hinstance)+'.mid';
      stream.SaveToFile(tmp);
    finally
      stream.free;
    end;
    mplayer.FileName:=tmp;
    mplayer.Open;
    mplayer.Play;
  except
  end;
end;

end.

Google Deploy Manager (Invalid config files: Template fetching failed / Failed to find resource)


By : Eric
Date : March 29 2020, 07:55 AM
I hope this helps you . The Deployment Manager command-line tool treats templates (determined by .jinja and .py file extensions) differently than a top-level config (which can have any other file extension) as inputs to the --config flag.
If the input configuration is a template, the tool will look for its sub-imports to be defined in the template's schema file (e.g., foo.jinja.schema), rather than in the configuration itself as is done with top-level YAML configs.
code :
imports
- path: sub-template.jinja

resources:
- name: sub-template
  type: sub-template.jinja
gcloud deployment-manager deployments create env --config my-environment.yaml
resources:
- name: sub-template
  type: sub-template.jinja
imports:
- path: sub-template.jinja
gcloud deployment-manager deployments create env --config my-environment.jinja

Failed to extract body due to: javax.jms.JMSException: Failed to build body from byte(Failed to extract sent Zip file to


By : Vittorio Grassi
Date : March 29 2020, 07:55 AM
This might help you The problem was converting zip to memorystream, Later I found it needs to convert .xml file to zipstream not the zip file.
code :
public static MemoryStream CreateZipStream()
    {
        using (ZipFile zip = new ZipFile())
        {
            MemoryStream outputStream = new MemoryStream();
            outputStream.Seek(0, SeekOrigin.Begin);
            string filePath =
                @"C:\YourXml.xml";
            zip.AddFile(filePath);
            zip.Save(outputStream);
            return outputStream;
        }
    }

Resource Files for Delphi


By : user3797912
Date : March 29 2020, 07:55 AM
hop of those help? It's brcc32.exe that you want, not bcc32.exe.
That should produce your .res file for you.

how to extract all icons from some exe files and insert them to other exe files using Delphi?


By : Novi Anto
Date : March 29 2020, 07:55 AM
it should still fix some issue The source is available for Colin Wilson's XN Resource Editor. It should have what you need. http://www.wilsonc.demon.co.uk/d10resourceeditor.htm
shadow
Privacy Policy - Terms - Contact Us © bighow.org