[Newbie!!] can I embed a file in my ecutable?
Digital Mars
ld-REMOVE at galador.net
Sun May 15 09:10:12 PDT 2011
Thanks, good to know!
"Jimmy Cao" <jcao219 at gmail.com> wrote in message news:mailman.179.1305439270.14074.digitalmars-d at puremagic.com...
Write a .rc file, and compile it with rcc (from Digital Mars).
That gives you a .res file.
So, for example, let's say you want to embed yolk.zip into an exe.
First, write yolk.rc with one line:
300 RCDATA "yolk.zip"
Then run this:
rcc yolk.rc
Then do this:
dmd egg.d yolk.res
Then the egg.exe should have yolk.zip embedded.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110516/5069de2c/attachment-0001.html>
More information about the Digitalmars-d
mailing list