Results 1 to 6 of 6

Thread: [SDL] sdl.dll in another path

  1. #1

    [SDL] sdl.dll in another path

    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?
    Marmin^.Style

  2. #2
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    [SDL] sdl.dll in another path

    use the Lib directory as your output directory (ie put the exe into that directory)
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  3. #3

    [SDL] sdl.dll in another path

    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
    Marmin^.Style

  4. #4

    [SDL] sdl.dll in another path

    I think it needs an absolute path to the lib folder, not a relative one. Just a hunch.

  5. #5

    [SDL] sdl.dll in another path

    [comment removed]
    Marmin^.Style

  6. #6

    [SDL] sdl.dll in another path

    Quote Originally Posted by marmin
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •