[SDL] Dynamically loading SDL dlls
Andre Krause
post at andre-krause.net
Wed Oct 31 06:08:49 PDT 2007
>
> Can you explain why SDL.dll needs to exist in a different location than
> the executable? You are asking how to accomplish something very
> specific, but I have a feeling that understanding the overall goal might
> be more useful to finding a solution that works for you.
>
> --ryan.
>
i have a similar desire, so i just answer before jeremy:
its a specific problem, yes, but it is rather a problem of bad support by the
operating system. afaik windows seems to know only one way of dynamically
loading a library (LoadLibrary from a file) - and thats very limited. what about
loading dlls from a resource? what about loading dlls over the internet to a
memory buffer and starting the dll from that place? why is such basic stuff not
supported directly by some standard system library?
and its not hard to understand why one needs that. if you want to have an
install-free application, you just want to carry all your dll's as a resource
with your executable. happily, my own little project is open source, so i have
no problem with static linkage, and do not to do nasty unportable dll stuff.
More information about the SDL
mailing list