Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-07

Lazarus Resources (2)

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Josh Lee

Hello people.
I've managed to compile a Lazarus resource, test.lrs. It has cmd.exe in it (I think!), and I'm trying to make a (useless) stand-alone program that takes the cmd.exe from the resource and places it in C:\. I've tried, and failed, and the Lazarus wiki doesn't explain it very well. Could someone please supply some documented sample code that does this? Thanks in advance,
- Josh

Reply by email

John vd Waeter
to Josh Lee

Josh, I don't know much about resources, but:

- What OS? In Win Vista or 7 you may not be allowed to write to C:\
- Is there an error message?

John

Josh Lee wrote 12 lines
Hello people. I've managed to compile a Lazarus resource, test.lrs. It has cmd.exe in it (I think!), and I'm trying to make a (useless) stand-alone program that takes the cmd.exe from the resource and places it in C:\. I've tried, and failed, and the Lazarus wiki doesn't explain it very well. Could someone please supply some documented sample code that does this? Thanks in advance, - Josh -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

John vd Waeter
to Josh Lee
Josh Lee wrote 5 lines
John, I run Vista. Yes, there is error messages, I simply do not know the syntax to achieve it. - Josh

Oh well, as you can see error messages, you can type them here?

John

Reply by email

Mattias Gaertner
to Josh Lee: Hello people. I've managed to compile a Lazarus resource, test.lrs. It has cmd.exe in it…
Hello people. I've managed to compile a Lazarus resource, test.lrs. It has cmd.exe in it (I think!), and I'm trying to make a (useless) stand-alone program that takes the cmd.exe from the resource and places it in C:\. I've tried, and failed, and the Lazarus wiki doesn't explain it very well. Could someone please supply some documented sample code that does this?

http://wiki.lazarus.freepascal.org/Lazarus_Resources#Getting_the_raw_data_of_a_lrs_resource

Mattias

Reply by email