PDA

View Full Version : [SDL] sdl.dll in another path



marmin
12-06-2008, 12:35 PM
This should be easy, I have SDL.DLL and the other DLL's in another path called Lib. How can I have Laz recognize this path?

cairnswm
12-06-2008, 01:33 PM
use the Lib directory as your output directory (ie put the exe into that directory)

marmin
12-06-2008, 02:18 PM
I want to neatly order my files.
lib <-- SDL, etc.
graphics
etc.


myapplic.exe
readme.txt

and no other.
In win32 I tried 'SetDllDirectory ('lib') but I got an error.
anyone knows why? http://msdn.microsoft.com/en-us/library/ms686203.aspx

Robert Kosek
12-06-2008, 02:42 PM
I think it needs an absolute path to the lib folder, not a relative one. Just a hunch.

marmin
12-06-2008, 03:21 PM
[comment removed]

marcov
23-06-2008, 01:48 PM
I want to neatly order my files.
lib <-- SDL, etc.
graphics
etc.


myapplic.exe
readme.txt

and no other.
In win32 I tried 'SetDllDirectory ('lib') but I got an error.
anyone knows why? http://msdn.microsoft.com/en-us/library/ms686203.aspx

Well, "an error" is not very descriptive, but setdlldirectory only works for loadlibrary'd dlls. And the last time I looked at SDL, it didn't do that.

Windows simply only searches local dir and some global dirs like windows/system32. Not much you can do about that, except loadlibrarying everything.