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

2011-05-15 Thread Digital Mars
Thanks, good to know! "Jimmy Cao" wrote in message news:mailman.179.1305439270.14074.digitalmar...@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

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

2011-05-15 Thread Digital Mars
Awesome!! Impressed by D! While I'm a .NET enthusiast, the crappy Install project from VS are motivating me to give D a Go! (Pun inside! :) I will also add D.learn to the newsgroup I'm watching then! :) "Timon Gehr" wrote in message news:iqocf4$1ihv$1...@digitalmars.com... Let's say I want

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

2011-05-15 Thread Timon Gehr
> Let's say I want to use to write a simple installer. > Can I embed a Zip file inside my executable? > If so, how? > > Thanks! :) An alternative to using resources is the following: auto zip_file = cast(immutable ubyte[])import("zip_file.zip"); You need to specify the -Jpath switch in order for

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

2011-05-14 Thread Jimmy Cao
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 s

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

2011-05-14 Thread Digital Mars
Let's say I want to use to write a simple installer. Can I embed a Zip file inside my executable? If so, how? Thanks! :)