From what I remember on Windows the search order for a dll is:
- Current Directory
- System folder,
C:\windows\system32 or c:\windows\SysWOW64(for 32-bit process on 64-bit box). - Reading from the
Pathenvironment variable
In 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