[SDL] Dynamically loading SDL dlls
necronology at cox.net
necronology at cox.net
Wed Oct 31 06:23:15 PDT 2007
"if you want to have an
install-free application, you just want to carry all your dll's as a resource
with your executable."
That's how it is anyway. Just have the dll in the folder that the exe is in.
As for loading a dll off of the internet I think it's a security issue of old. There would be no file footprint on the hard drive. You could download it to the hard drive and then load it pretty easy. Then the software conventions come into play where coders are supposed to put their stuff in their own folder if it's for their program and in system area if it's for multiple programs. To be nice you are supposed to install the program so the users can easily find and remove/uninstall
---- Andre Krause <post at andre-krause.net> wrote:
> >
> > 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.
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
More information about the SDL
mailing list