You may receive an error message that the Win32 DLL search path is displayed. Well, there are several ways to solve this problem, which we will talk about shortly.
A system may contain multiple versions of the same DLL (Dynamic Link Choice). Applications can control which store a DLL is built from by providing the full path or by using another mechanism such as a manifest. When these methods are no longer used, the system looks for your current DLL at boot time, as noted in this section.
How do I enable safe DLL in search mode?
Set “Computer Configuration” -> “Windows Settings” -> “Security Settings” -> “Local Policies” -> “Security Settings” -> “MSS: (SafeDllSearchMode) Enable Safe DLL Search (Recommended)” to “Activated”.
MSDN says that the SetDllDirectory() function can be used to add a directory to my DLL search path. Can this be achieved with a batch data file or a cmd script, perhaps with your cscript?
The goal is to have our development version of the DLL present before the existing old version with %WINDIR% etc without having to write a program for it.
Posted February 5, 2009 10:16 PM
Not The Treatment You Are Looking For? Browse Other Queries Tagged Batch File Cmd Dll Wsh Or Ask Your Question.
SubjectProp = “Number of comments”>
But you can put your DLL directory in some %PATH% variables and Windows will understand the DLL there.
set PATH=C:path to your company DLL;%PATH%