Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: Chris Faylor Date: Thu, 31 Aug 2000 14:39:29 -0400 To: cygwin AT sources DOT redhat DOT com Subject: Re: DLL naming conventions Message-ID: <20000831143929.A7255@cygnus.com> Reply-To: cygwin AT sources DOT redhat DOT com Mail-Followup-To: cygwin AT sources DOT redhat DOT com References: <128287744755 DOT 20000831204417 AT logos-m DOT ru> <20000831133952 DOT 21477 DOT qmail AT web123 DOT yahoomail DOT com> <39AE7E06 DOT CEFB0BC8 AT ece DOT gatech DOT edu> <20000831115556 DOT F5412 AT cygnus DOT com> <128287744755 DOT 20000831204417 AT logos-m DOT ru> <20000831141201 DOT A7062 AT cygnus DOT com> <4 DOT 3 DOT 2 DOT 7 DOT 2 DOT 20000831132552 DOT 01c985f0 AT mail DOT prefres DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: <4.3.2.7.2.20000831132552.01c985f0@mail.prefres.com>; from mminnis@prefres.com on Thu, Aug 31, 2000 at 01:26:53PM -0500 On Thu, Aug 31, 2000 at 01:26:53PM -0500, Matt Minnis wrote: >Chris, > ><> > >>That means that the (so far hypothetical) DLL problems should be >>solvable by keeping the DLLs in the same directory as the executables. > >Yes, windows searches the current directory first, then moves on to the path. This is not strictly true. Here's the load order from msdn.microsoft.com: 1. The directory from which the application loaded. 2. The current directory. 3. Windows 95/98: The Windows system directory. Use the GetSystemDirectory function to get the path of this directory. Windows NT/ 2000: The 32-bit Windows system directory. Use the GetSystemDirectory function to get the path of this directory. The name of this directory is SYSTEM32. 4.Windows NT/ 2000: The 16-bit Windows system directory. There is no function that obtains the path of this directory, but it is searched. The name of this directory is SYSTEM. 5.The Windows directory. Use the GetWindowsDirectory function to get the path of this directory. 6.The directories that are listed in the PATH environment variable. So, putting DLLs in the same directory as the application should solve the problem, as I indicated. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com