Results 1 to 9 of 9

Thread: compiling two dlls as one?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    compiling two dlls as one?

    I'm making a class library (it's a series of controls to be used with windows forms). I'm using another dll (utility) in this class library. And so when I compile the project I will end up with two dlls. One is the class library and another the utility dll. I'm just wondering if there is a way to just make one dll out of these two?
    Also how can I use this in a project? I tried adding my dll to a windows form project, and adding the utility dll to the refrences of that project. But when I try to use any of the controls that I have in my class library, I get an error saying that the utility dll was not found.
    (btw it works fine if I add the class library project in the solution, rather than including its dll only.)

    any ideas?
    Last edited by MrPolite; Feb 15th, 2003 at 06:47 PM.
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    bump
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Just wondering , Does your app have two projs ??

  4. #4

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Pirate
    Just wondering , Does your app have two projs ??
    yes. The control library is a solution with two projects. One is the utility and the other contains the controls. I want to use the whole thing (the solution) in another project. It works fine if I just add the two projects to another solution, but it doesnt work if I just want to add the compiled dlls of those two projects
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  5. #5

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    aaah ok resolved:
    In the project properties: both projects have to have the same name for Assembly Name


    edit: what an idiot I am, it made two dlls with teh same name, but different HELP!
    Last edited by MrPolite; Feb 14th, 2003 at 09:51 PM.
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  6. #6
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You have to put them in the same project and compile it to one dll that I believe is the only way.

  7. #7

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Edneeis
    You have to put them in the same project and compile it to one dll that I believe is the only way.
    yeah I ended up doing that. I wish there was a way to keep them in separate projects
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    umm , What if you combined your two projs in one.?? Will you still have the same output ?

  9. #9

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Pirate
    umm , What if you combined your two projs in one.?? Will you still have the same output ?
    read ^, I said I did that, nm
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

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