Kbase 14025: How does Windows search for a DLL ( .dll PATH )
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  5/10/1998 |
|
How does Windows search for a DLL ( .dll PATH )
When MS-Windows looks for a dll, it looks in this order:
If a path is specified, the dll is searched for in that
directory otherwise it will look in the followin places in
this order:
1) the directory the application is in (where the executable
is located-- e.g. where _prowin is if that is executable)
2) the current directory
3) the windows system directory
4) the windows directory
5) the directorys in the PATH environment variable
The following example illustrates how a path can be specified
directly:
procedure procname external "c:\foo\bar.dll".
If you are getting errors that your entrypoint is not found
and you have the DLL in one of the above directories, then you
may be accessing a MS-Windows DLL that cannot be moved. Load Windows
and before you bring up Progress, run 'wps' via the Program Manager.
This will show you what DLLs have been loaded by Windows already.
You should not move these DLLs.
Progress Software Technical Support Note # 14025