The directory from which the application loaded is searched first.
msdn:
Standard Search Order for Desktop Applications:
1.The directory from which the application loaded.
2.The system directory. Use the GetSystemDirectory function to get the path of this directory.
3.The 16-bit system directory. There is no function that obtains the path of this directory, but it is searched.
4.The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.
5.The current directory.
6.The directories that are listed in the PATH environment variable.
The reason I ask is because I spotted the following in the Help files...
Result = OpenLibrary(#Library, Filename$)
Filename$: "The filename of the library to load. If the filename does not include a path, then the operating system will search for the library in its system folders, the applications directory and the current directory".
Makes it sound like:
#1 - system folders
#2 - applications directory
#3 - current directory
And I was thinking if it grabs the systems folder first, my included DLL won't be loaded.
Thanks
- It was too lonely at the top.
System : PB 6.10 LTS (x64) and Win Pro 11 (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem