DLL Search Order
-
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
-
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
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