: This is about attaching a wav file to an executable so that it's not
: separate. My solution isn't elegant but I'm sure it'll work 'cause
: done it with bmps: I'm going to try and put all the data of the small
: wavs I'm using into an overlay unit, then hopefully print it all back
: out into a new wav file. It won't be much bigger than the wav itself.
: The only potential catch will be to make sure that all the data is
: transferred to the new file. I'm just about to try it all out. Wish
: luck. Sure would like to get into TPW or Delphi. They are so great
: I hear the books needed are expensive. Best wishes... oracletwo
: PS: Been having better luck working with pointers but using pointers
: won't solve the issue of not having separate files. Previously I used
: binobj to make a wav file into an object and then to join them using
: copy /b myprog.exe+mywav.obj but the object didn't stay attached.
It is possible to just attach the file after your exe, thus making one concatenated file. The trick is that you have to know at what position your data is and whats the length. To access it you'll open your exe file, seek
to the beginning of the data and read it from there. Your can do this with multiple files too, not just one. Look at this simple demo, it may give you an idea or two: