[Newbie!!] can I embed a file in my ecutable?

Jimmy Cao jcao219 at gmail.com
Sat May 14 23:00:42 PDT 2011


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/20110515/f74123aa/attachment.html>


More information about the Digitalmars-d mailing list