Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: Chris Faylor <cgf@cygnus.com>
Date: Thu, 31 Aug 2000 14:39:29 -0400
To: cygwin@sources.redhat.com
Subject: Re: DLL naming conventions
Message-ID: <20000831143929.A7255@cygnus.com>
Reply-To: cygwin@sources.redhat.com
Mail-Followup-To: cygwin@sources.redhat.com
References: <128287744755.20000831204417@logos-m.ru> <20000831133952.21477.qmail@web123.yahoomail.com> <39AE7E06.CEFB0BC8@ece.gatech.edu> <20000831115556.F5412@cygnus.com> <128287744755.20000831204417@logos-m.ru> <20000831141201.A7062@cygnus.com> <4.3.2.7.2.20000831132552.01c985f0@mail.prefres.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,
>
><<Snip>>
>
>>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@sourceware.cygnus.com

