Thread: standart dlls

  1. #1
    Registered User
    Join Date
    Feb 2006

    standart dlls

    Ok in a previous thread I had an question about dlls on which my programm based.
    With DEPENDS.EXE from the Visual Studio I worked out that my programm (a dll) need some system dlls. I have two versions of my programm, one older which works on any system and a much newer version which I think only works on win xp and up, not on 2000.
    I found out that my newer version has one more system dll on which it is based, than the older version. And that was advapi32.dll so I looked into my source code for code which loads the advapi32.dll and found it in RegQueryValueExA, I deleted that entry and now my old version and my new version are based on the same system dlls.

    But my new version does not run even with this modifications. So I think it has to do with the version of the system dlls the two versions of my programm use.

    But my question how to replace old system dlls which newer ones (KERNEL32.DLL, USER32.DLL, WS2_32.DLL)? I tested it on one of my pcs. I replace the dlls on a 2000 system with the dlls of a XP system the result was a total crash of the 2000 system.
    Any ideas? I mean I want to use the new features I have in my newer programm but not on the cost of uncompatibility.

    Hope you understand my very bad english

  2. #2
    Registered User
    Join Date
    Aug 2005
    I guess you found out the hard way that you cannot replace those DLLs Its a little supprising that MS-Windows even allowed you to replace them because I thought that starting with W2K the system prevented them from being replaced unless the installer is running under some special permissions (I don't know what permissions are needed).

    For what its worth, here's an artical about dll hell
    Last edited by Ancient Dragon; 07-05-2006 at 03:22 PM.

  3. #3
    Madly in anger with you
    Join Date
    Nov 2005
    I might be wrong here but I believe you might be looking for the latest Windows Platform SDK? you can get that from here:

    you would think that WFP (Windows File Protection) would have denied you from replacing those DLLs.

    anyways I would think this would be more appropriate in the Windows Programming forum?
    Last edited by Bleech; 07-05-2006 at 03:33 PM.

    Intel Core 2 Quad Q6600 @ 2.40 GHz
    3072 MB PC2-5300 DDR2
    2 x 320 GB SATA (640 GB)
    NVIDIA GeForce 8400GS 256 MB PCI-E

  4. #4
    Registered User
    Join Date
    Feb 2006
    Yes with disabling the WFP and some rename tricks of the dlls it worked so I had a system crash

    Anyone an idea how to find out what functions or whatever I have in my new programm which makes it umcompatibel to the system dlls under win 2000. When I know them I can find a way to use other code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Protection of DLLs
    By Poche in forum C# Programming
    Replies: 5
    Last Post: 06-04-2009, 08:30 PM
  2. Some doubts on DLLs
    By BrownB in forum Windows Programming
    Replies: 1
    Last Post: 05-30-2007, 02:25 AM
  3. Can't load string from resource DLL's string table
    By s_k in forum Windows Programming
    Replies: 4
    Last Post: 07-15-2003, 06:43 AM
  4. question about DLL's and class functions
    By btq in forum Windows Programming
    Replies: 2
    Last Post: 02-25-2003, 06:08 AM
  5. DLLs <- sound files, and nesting.
    By sean in forum C++ Programming
    Replies: 2
    Last Post: 10-28-2002, 05:13 PM