In our application, we dynamically load a dll file, which again has static bindings to other dlls.
Until now, all this dlls have been in our application folder. From now on, we want to move these dlls into a directory structure. Which folder the dll should be loaded from is to be decided at runtime. (versioning / dynamic updates...)
Question 1: What is the best way of forcing the dynamically loaded library to look for static loaded libraries in a given folder?
Question 2: How can we prevent that it loads the static libraries from the application folder if a older version of the libraries is left behind there?
(btw, it's a win32 application...)