Mattias Gaertner wrote:
On Mon, 13 Mar 2006 20:11:18 +0100
bobby <[EMAIL PROTECTED]> wrote:
Mattias Gaertner wrote:On Mon, 13 Mar 2006 18:57:35 +0100
"v.scozzaro '[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> wrote:
bobby ha scritto:
Is it possible to have files in laz-resources, and to drop them to HDD
at the run-time?
Also, some kind of compression-decompression would be also welcome.
Is there some good manual for using laz-resources?
A designtime
Not a runtime
What do you mean?
You can add and change lazarus resources at any time, as they are simple
strings.
If you want to include a file into an executable: use the lazres tool to
create an lrs and include that.
Mattias
I want to include an exe, a html file, and two pictures into my
exe-file done in Lazarus.
The question is: if I include those 4 files into resources, and link them
into my exe-file, how can I save them back to HDD from already linked
executable? To make the clear picture, all of you know what NSIS installer
or Inno setup does, how can I make the same thing? I simply want that my
exe create/save other files (that are in resources, linked into running
exe) at the runtime.
AString:=LazarusResources.Find('imagename').Value;
fs:=TFileStream.Create('filename',fmCreate);
try
fs.Write(AString[1],length(AString));
finally
fs.Free;
end;
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
Thanks, that was useful.
Do someone know, do LazRes uses some kind of compression and/or encryption?
bobby
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives