From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,9f5c1c8d844fc69e X-Google-Attributes: gid111c93,public X-Google-Thread: 10d0a1,9f5c1c8d844fc69e X-Google-Attributes: gid10d0a1,public X-Google-Thread: fcfb9,9f5c1c8d844fc69e X-Google-Attributes: gidfcfb9,public X-Google-Thread: 1025b4,9f5c1c8d844fc69e X-Google-Attributes: gid1025b4,public X-Google-Thread: 1125fa,9f5c1c8d844fc69e X-Google-Attributes: gid1125fa,public From: K. Bjarnason Subject: Re: DLL mess Re: "No-one gets fired for buying Microsoft" Date: 1999/09/26 Message-ID: #1/1 X-Deja-AN: 529660667 References: <37D81FE1.E90C3B1F@winkinc.com> <37e523f0.80183257@news.shore.net> <7GVD3.2387$S5.235018@ptah.visi.com> <37e1f3e4.133419146@news.shore.net> X-Complaints-To: news@bctel.net X-Trace: news.bctel.net 938333397 209.53.36.104 (Sun, 26 Sep 1999 01:09:57 PDT) NNTP-Posting-Date: Sun, 26 Sep 1999 01:09:57 PDT Newsgroups: comp.os.linux.alpha,comp.os.linux.advocacy,comp.os.ms-windows.advocacy,comp.os.ms-windows.nt.advocacy,gnu.misc.discuss [snips] In article , seebs@plethora.net says... > >You mean running all the apps against all the library versions until > >one combination breaks? That doesn't sound so easy, especially for an > >average Joe with lots of DLL-heavy apps on his system. > > No, I don't, and you still don't get it: > > EVERY APPLICATION CAN PICK THE VERSION IT WANTS. > I'm not sure you quite get the concept in the Windows world. Allow me to explain it, in detail. Let's look at, oh, the MFC DLLs. App X uses MFC version 3.2. App Y uses MFC version 4.2. No problem, these reside in differently named DLL files. App X uses "mfc32.dll", app Y uses "mfc42.dll". Note that the difference here is API version, not file version. Suppose you, as the author of app Y, rely on mfc42.dll for proper operation, and a new version of the dll is released by MS, installed on user systems, and your application breaks. Guess what? Other than perhaps in the case of a buggy DLL... this is *your* problem. Why do I say that? Simple: the DLL has a specified API, a specified set of operations and effects. If that changes in any significant manner, then it's no longer MFC 4.2, and won't be called mfc42.dll. That your application breaks suggests that *you* are relying on unpublished effects which you shouldn't be relying on. So, whether the user updates the DLL once, twice or a thousand times is totally irrelevant to you as the app developer. As long as you're relying _only_ on the published API and effects, your application keeps working, totally unaware of the changes. Now take the case of a third-party DLL. Suppose, oh, Corel has released a DLL called "corel6.dll" along with the Corel Draw 6 package. Perhaps you have decided to adopt some of its functionality. Unless Corel has explicitly published the API and effects of the DLL, they are free to change it, totally and completely, at a whim, and tough luck to you; undocumented features are just that - undocumented; there is no need nor reason for them to maintain compatibility with something you shouldn't be using. There are only two cases where *any* of this even *can* cause a problem. The first is when a vendor includes a version of, say, mfc42.dll which is older than the existing one, but updates it anyway, and where the dll actually has bugs. In the former case, blame goes directly to the incompetent vendor; in the second case, blame goes to the DLL developer, but - at least for MS DLLs - wait about 2 days and there will be an update available. :) Oh, there is a third case which can cause problems - when you, as an app developer, rely on undocumented behaviour. Well, if you want to advertise your incompetence to the world, feel free. :) All of which is to say, an application _does_ pick "the version it wants" _where such versioning is relevant_ and otherwise simply gets the latest version. Short of an actual DLL bug, though, the application should keep right on working unless its (the app's) author did something wrong. So what's the problem?