Kleiner Tip von MS, wo das System üblicherweise DLLs ohne Pfadangabe findet:
the standard DLL search path is:
- The directory from which the application loaded.
- The directory specified by the lpPathName parameter.
- The system directory. Use the GetSystemDirectory function to get the path of this directory. The name of this directory is System32.
- The 16-bit system directory. There is no function that obtains the path of this directory, but it is searched. The name of this directory is System.
- The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.
- The directories that are listed in the PATH environment variable.
Die durchaus möglichen und früher auch üblichen Windows- und Systemordner sollte man nicht verwenden, auch wenn es durchaus noch funktioniert.
Gruß Volkmar