From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fcfb9,9f5c1c8d844fc69e X-Google-Attributes: gidfcfb9,public X-Google-Thread: 1025b4,9f5c1c8d844fc69e X-Google-Attributes: gid1025b4,public X-Google-Thread: 111c93,9f5c1c8d844fc69e X-Google-Attributes: gid111c93,public X-Google-Thread: 1125fa,9f5c1c8d844fc69e X-Google-Attributes: gid1125fa,public X-Google-Thread: 10d0a1,9f5c1c8d844fc69e X-Google-Attributes: gid10d0a1,public From: "Daniel Johnson" Subject: Re: DLL mess Re: "No-one gets fired for buying Microsoft" Date: 1999/09/25 Message-ID: <7sji01$jjr$3@bgtnsc01.worldnet.att.net>#1/1 X-Deja-AN: 529541775 References: <37D81FE1.E90C3B1F@winkinc.com> <7rhnid$g6e$1@Mercury.mcs.net> <7s3cvv$1sm8$1@Mars.mcs.net> <7s3uf2$u0$1@bgtnsc01.worldnet.att.net> <37e730f3.476730462@news.shore.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc01.worldnet.att.net 938298177 20091 12.78.203.237 (25 Sep 1999 22:22:57 GMT) Organization: AT&T WorldNet Services X-MSMail-Priority: Normal NNTP-Posting-Date: 25 Sep 1999 22:22:57 GMT Newsgroups: comp.os.linux.alpha,comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,gnu.misc.discuss Se�n � Donnchadha wrote in message news:37e730f3.476730462@news.shore.net... > "Daniel Johnson" wrote: > > >> > >> The point is, you *can't* resolve the conflict if another app needs > >> a different DLL of the same name, whether they are different versions > >> of the same thing or two different things entirely. Once one of > >> them is loaded, you can't load a different one from a different > >> location without rebooting to get rid of the other one. > > > >To quibble: > > > >You actually *can* if you try hard enough, but nobody does. To do it, > >you need to specify a full or partial path, not just a filename, when you > >load the library. If you specify just the filename, the first thing Windows > >does is check for loaded libraries having same name. > > > >The normal load-time linking procedure does it by filename (not path), so > >90% of the time you are going to get the already loaded library. > > > > Totally false. Check the Win32 API docs for LoadLibrary(). Well, I find this passage in the docs for LoadLibrary: When no path is specified, the function searches for loaded modules whose base name matches the base name of the module to be loaded. If the name matches, the load succeeds. Otherwise, the function searches for the file in the following sequence: Here is the URL: http://msdn.microsoft.com/isapi/msdnlib.idc?theURL=/library/sdkdoc/winbase/d ll_1o8p.htm (Outlook Express is sure to display it's considerable line-mangling talents on the URL, so be sure you reassemble it properly.) Online MSDN Library. Gotta love it. :D