Thread: windows dll problems

  1. #1
    Banned
    Join Date
    Nov 2007
    Posts
    678

    windows dll problems

    Originally posted posted at: http://www.yolinux.com/TUTORIALS/Lib...ndDynamic.html

    Quote Originally Posted by Talking about Linux .so files
    The library version can be specified when the shared object library is created. If the library is expected to be updated, then a library version should be specified. This is especially important for shared object libraries which are dynamically linked. This also avoids the Microsoft "DLL hell" problem of conflicting libraries where a system upgrade which changes a standard library breaks an older application expecting an older version of the the shared object function.
    Then how they solve this problem on Windows?
    Does it mean that all the pre-installed apps have to be reinstalled with the latest versions of apps using latest versions of .dll?

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by manav View Post
    Originally posted posted at: http://www.yolinux.com/TUTORIALS/Lib...ndDynamic.html



    Then how they solve this problem on Windows?
    Does it mean that all the pre-installed apps have to be reinstalled with the latest versions of apps using latest versions of .dll?
    Well, the general way is that you don't "disturb" old functions in the DLL - anything that changes the behaviour of a function in such a way that it's noticable outside the function, it should become a new function, and new libraries call the new function.

    But aside from programmers doing the right thing, there's no mechanism in Windows to account for DLL's changing.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Banned
    Join Date
    Nov 2007
    Posts
    678
    Thanks Mats!
    So if I had made a .dll and then i wanted to make some changes, then to avoid any problems i can just leave old functions as it is, and implement new functions, and, the new dl will still work, even for older apps. Right?

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by manav View Post
    Thanks Mats!
    So if I had made a .dll and then i wanted to make some changes, then to avoid any problems i can just leave old functions as it is, and implement new functions, and, the new dl will still work, even for older apps. Right?
    Yes.

    Of course, this is of no importance if the .DLL and the .EXE are always distributed in pairs.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. First Windows DLL
    By g_hickley in forum C Programming
    Replies: 4
    Last Post: 02-14-2009, 12:16 AM
  2. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 07:11 AM
  3. Using class with DLL
    By greg2 in forum C++ Programming
    Replies: 2
    Last Post: 09-12-2003, 05:24 AM
  4. windows service + hooks + dll
    By rotis23 in forum Windows Programming
    Replies: 5
    Last Post: 09-04-2003, 07:06 AM
  5. Windows Xp Problems People!!!
    By CumQuaT in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 08-02-2002, 08:20 PM