incbin executable?

BlitzMax Forums/BlitzMax Programming/incbin executable?

ckob(Posted 2006) [#1]
probebly a dumb question but I have a few executables that run with my main app and I would like to include them all into 1 EXE but still be able to run them could I incbin them some how?


JazzieB(Posted 2006) [#2]
You could probably include them, but I imagine the only way you're going to be able to execute them is to save them out to disk and execute them from there.

Having said that, going back to my ST days, you could load programs into memory and then execute them at a time of your choosing. There's probably a way of doing this on the PC and/or Mac as well, although I have no idea how, or whether it's possible from within BlitzMax. I suppose if it were possible all you'd need to do is pass a pointer to the incbin'd EXE to the OS. But I'm no expert!


Dreamora(Posted 2006) [#3]
Not sure if that is possible at all on XP as SP2 introduced some stuff to prevent "storage code" to execute anything at all.