[SDL] Embed SDL.dll in the .exe

Andre Krause post at andre-krause.net
Fri Sep 28 12:22:23 PDT 2007


Sylvain Beucler wrote:
> Hey,
> 
> I guess that could be done simply enough, by modifying 7-zip's .exe
> self-extractor, so that it runs $destdir/bin/myprog.exe after it's
> done extracting the .zip (or the .zip is already extracted) ;)
> 
> And put savegames in the personal folder rather than in the game
> install directory, because the install directory is likely to be
> erased with such an easy setup.
> 

no need for modifying anything, there is already this FREE, wonderful 
tool zip2exe:

http://www.chilkatsoft.com/ChilkatSfx.asp

i think its the same tool used by the "single-exe"  (in reality a single 
zipexe) games on www.experimentalgameplay.com.

but if you want to have a commercial solution, you can even embed dlls 
into the exe and load them directly from the exe to memory and execute 
from memory. http://www.molebox.com/  (there are of course many others, 
thats just the one that usually pops up in google)

or you can do it for free, but with some effort:
http://www.joachim-bauch.de/tutorials/load_dll_memory.html/en
but i personally gave up on this, way to complex and complicated. i 
rather did the effort to tweak some openAL source code such that i was 
able to make a static lib of openAL (openAL was the only lib i could not 
statically compile, and even the openAL list refused to help me. but now 
i know how to compile it statically. if anyone is interested, i will 
email you the howto.txt)



More information about the SDL mailing list