Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. DLL Search Order

DLL Search Order

Scheduled Pinned Locked Moved C#
visual-studiocomsysadminperformancequestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jchigg2000
    wrote on last edited by
    #1

    Hello all! I've got an application that is setting on a server that is run my multiple users. The user's shortcuts are pointed to the .exe on the server, which can in some cases be located in a different office miles away. I have read the article dll search order article on msdn http://msdn.microsoft.com/en-us/library/ms682586(VS.85).aspx[^] It states that the initial search for the dll's will be done in the directory where the app was launched from. It's going to find them in this case which I would assume could be bad considering they are on a remote server(for performance reasons). If I use the SetDllDirectory() function and make sure that each user has the dlls locally, am i only changing the searh order for my specific application? Any other info would be greatly appreciated. Thanks

    D 1 Reply Last reply
    0
    • J jchigg2000

      Hello all! I've got an application that is setting on a server that is run my multiple users. The user's shortcuts are pointed to the .exe on the server, which can in some cases be located in a different office miles away. I have read the article dll search order article on msdn http://msdn.microsoft.com/en-us/library/ms682586(VS.85).aspx[^] It states that the initial search for the dll's will be done in the directory where the app was launched from. It's going to find them in this case which I would assume could be bad considering they are on a remote server(for performance reasons). If I use the SetDllDirectory() function and make sure that each user has the dlls locally, am i only changing the searh order for my specific application? Any other info would be greatly appreciated. Thanks

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      A quick read of the documention on SetDllDirectory[^] says it's only for the application.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups