Re: Resources and Euphoria (Opening a new thread)

new topic     » goto parent     » topic index » view thread      » older message » newer message

> Jesus wrote:
>
> >So I was proposing to have a single file with a dual contents. At the
> >beginning, the normal .EXE. After the .EXE, a kind of "resource" file that
> >would consist on an array (or sequence) of headers that would describe the
> >later contents. A header should have a couple of pointers -where the
> >resource begins and its length-, a name -to identify it-, a descriptor -to
> >know what kind of resource is-, etc.
>

hrmmmm....
If I read this right, you want data appended to a bound program.
Since binding _already_ appends 'data' (ergo: include files) and since
there is _already_ a program that converts data (bmp's I believe) into
'includable' files...(can't remember the filename for the bmp->include
converter...anyone?)...why not modify that program for your other data
types as well? the waves and such can all be turned into ahem 'ascii'
(after all, isn't all data ascii anyway :) )

Here's the benefits/detrements.
1> if you want to change the image or sound, you needn't worry about
what size it will end up nor do you need worry about resource/garbage
cleanup/management problems.  You simply edit the wavefile, convert to
the include file format and re-bind the program.  Euphoria then takes
care of the rest of the headaches automagically. Poof, no offset
worries,
no potential for typos of those offsets...etc.  Euph simply does what it
does best, read a sequence constant from an include.

2> because it _is_ a sequence... fun things also automagically happen.
example: waves.  fast forward and rewind become _slicing_ ;)

3> if you want others to be able to receive your single exe file and
subsequently be able to use a second program
(packer/unpacker/hacker/editor)
to modify those resources....dunno if this method proposed can
accomodate
that need... unbinding a bound program defeats (IMHO) the true purpose
of binding in the first case...work around for this becomes more of a
PKZIP (as previously mentioned) needed solution type.

4> if enduser isn't supposed to be able to modify these resources,
instead
only you, binding is perfect, and this solution addresses that.

5???? others i haven't seen anyone?

mike

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu