Standalone Win32 wxPython apps?

Bengt Richter bokr at oz.net
Sun Mar 10 17:37:45 EST 2002


On Sun, 10 Mar 2002 09:29:36 -0800, Gerhard =?ISO-8859-1?Q?H=E4ring?= <gerhard at bigfoot.de> wrote:

>Grant Edwards wrote:
>> If I did, couldn't I make all of
>> "my" apps look in the same place for "my" DLLs? I really hate
>> the idea of my app putting things in "system" directories.
>
>Sure you can. Just append to the PATH a directory where all your DLLs 
>go. This is of course best done with the installer. Here's a description 
>of how Windows searches for DLLs:
>
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_The_Search_Path_Used_by_Windows_to_Locate_a_DLL.asp
>
I don't think they'll mind a quote snippet, do you? It'd be kind of stupid to paraphrase it.

---
With both implicit and explicit linking, Windows first searches the set of
pre-installed DLLs such as the performance library (KERNEL32.DLL) and the
security library (USER32.DLL). Windows then searches for the DLLs in the following sequence: 

The directory where the executable module for the current process is located. 
The current directory. 
The Windows system directory. The GetSystemDirectory function retrieves the path of this directory. 
The Windows directory. The GetWindowsDirectory function retrieves the path of this directory. 
The directories listed in the PATH environment variable. 
Note   The LIBPATH environment variable is not used.
---

I.e., unless you are trying to override some pre-installed thing, just putting your DLL's
in the same directory as your .exe ought to work.

Regards,
Bengt Richter

BTW, you can't see the URL with Netscape 4.5.
I wonder if their servers talk to IE in a special way ;-/




More information about the Python-list mailing list