From what I remember on Windows the search order for a dll is:
C:\windows\system32 or c:\windows\SysWOW64
(for 32-bit process on 64-bit box).Path
environment variableIn addition I'd check the dependencies of the DLL, the dependency walker provided with Visual Studio can help you out here, it can also be downloaded for free: http://www.dependencywalker.com