Results 1 to 5 of 5

Thread: DLL inside another DLL

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    42

    DLL inside another DLL

    I'm creating a DLL file that has a reference to another DLL file.
    Is it possible to create a DLL file with the other one inside (thus not referring to another DLL file somewhere outside, but referring to itself).

    Eg: I've a.dll referring to b.dll.
    I want to include b inside a, hence having one dll file instead of 2.

    I know this is not the purpose of dynamic link libraries, but my libraries are about 15kb and with not page fault so often. So it doesn't really matter.

    Thank you.

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    Re: DLL inside another DLL

    Do you have the source code for both of these? If so, then you can make it happen relatively easily, though it comes at the caveat that you want to either:

    1) Never need to update the dll.

    Or

    2) Have the second one ONLY exist inside the first one, rather than have it be sometimes included, and sometimes used on its own.
    My usual boring signature: Nothing

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    42

    Re: DLL inside another DLL

    No, I dont' have the source code for the second one, only the dll.
    I want to update the first dll.
    I just want to use some methodes from the second dll, no other processes will use the second dll

  4. #4
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: DLL inside another DLL

    Why cant you just do what every other program in the world does and deploy that DLL with your application/DLL? All you need is to add a reference to it and then it just needs to be in the same directory that your app is running from or in the GAC
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  5. #5

    Thread Starter
    Member
    Join Date
    Oct 2009
    Posts
    42

    Re: DLL inside another DLL

    My first dll will be a wrapper for the second one.
    But I have quite a lot of these dll files, and I don't want my installation directory cluttered with thousands of 10kb dll's, but rather have a few bigger ones.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width