Is there a way to set multiple directories in the search path using SetDllDirectory
I've been able to get it to work for a single directory but I've subsequently found that this DLL is dependent on a number of other Dlls which are spread over different directories.
Calling SetDllDirectory twice resets the directory which is what you would expect, but have tried comma-separated and semi-colon separated directories in a single call both of which failed.
eg
[DllImport("kernel32.dll")]
public static extern bool SetDllDirectory(string pathName);//and the call is:
bool result = SetDllDirectory(@"C:\Dir1;C:\Dir2");
Anyone tried / done this before

SetDllDirectory
zppro
webrod
Hello,
Maybe you could try Environment.SetEnvironmentVariable("PATH",.... instead.
Richard
Ben Santiago