Re: Resources and Euphoria (Opening a new thread)
- Posted by "Carl R. White" <C.R.White at SCM.BRAD.AC.UK> Jun 03, 1998
- 950 views
On Wed, 3 Jun 1998, JesusC - Jesus Consuegra wrote: > Carl R. White wrote: > > Closest I've come to anything similar is a message I posted to the > > list a very long time ago. I'll apologise now for the long message I tagged on here and the next long message below... :( > I would like to have a single .EXE file that once run could dynamically load > those bitmaps from itself, without having any other dependent file. I'll get to working on something like this for Euphoria for DOS. It'll be in some kind of propietary format, so unfortunately there might not be a depacker until I figure out how I've packed the thing! :) Also, I'm not sure of the applications of this kind of thing. Would the files/bitmaps be extracted to disk at any time, or would they just stay in the .EXE? > Moreover, I would like to be able of changing the bitmaps without touching > the binded executable. [space save] > Thus I could change a single bitmap by adding it at the end of the .EXE and > updating the pointer and lenght parameters... You can think even in using I'm not sure I like what you imply here. This would mean that the executable would increase in size every time the bitmap was altered and resaved. A useless bitmap would be left unlinked but still present in the .EXE. Just resaving over the original shouldn't cause problems, provided the bitmap didn't change in size... [yet_another_space_save] > And the global benefit is a single file to store everything. If you want to > discard it, just a single delete command. No .INI, no registry... The ZIP2EXE solution is still a *very* close approximation IMHO. You could always have the main program recreate the .EXE using a ZIPSFXer! Actually, after rereading your post, I think you might be talking about doing this in Win32... The zip approach will work to an extent under '95, '98(ick!) or NT, since Win .EXEs can be started from a command prompt. However, to do what you ask *properly* in Win32, I suggest looking up how to create .DLLs, and then include an executable portion at the top. Happy coding, Carl PS <grammarcheck> binded -> bound </grammarcheck> :) If English is your second language though, I wouldn't worry too much about it. Check this mail for how many grammatical errors I've made. :) -- Carl R White E-mail...: cyrek- at -bigfoot.com / Remove the hyphens before Finger...: crwhite- at -dcsun1.comp.brad.ac.uk \ mailing or fingering... Url......: http://www.bigfoot.com/~cyrek/