Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. About using DLL files in projects

About using DLL files in projects

Scheduled Pinned Locked Moved Visual Studio
questioncsharpvisual-studio
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    maryam saboor
    wrote on last edited by
    #1

    Hi everybody! This is my question (may be a very unprofessional one): when I make a project in Visual Studio and add a reference to some dll file and complete the project( by here every thing is OK!),so the program runs in my system as I want,BUT! as you know if I want to pick the project up and run it in another system so I should add and reference the dlls again. Is there some professional way to add dlls once and the program could be run on every system whitout being worry about adding dlls? thanks in advance

    C J 2 Replies Last reply
    0
    • M maryam saboor

      Hi everybody! This is my question (may be a very unprofessional one): when I make a project in Visual Studio and add a reference to some dll file and complete the project( by here every thing is OK!),so the program runs in my system as I want,BUT! as you know if I want to pick the project up and run it in another system so I should add and reference the dlls again. Is there some professional way to add dlls once and the program could be run on every system whitout being worry about adding dlls? thanks in advance

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      You have to distribute the dll's with your application. The best way to distribute your app is in general to provide an installer that will do all those kind of tasks for you (and even more). You can for example take a look at InnoSetup[^], which is free.

      Cédric Moonen Software developer
      Charting control [v1.3]

      1 Reply Last reply
      0
      • M maryam saboor

        Hi everybody! This is my question (may be a very unprofessional one): when I make a project in Visual Studio and add a reference to some dll file and complete the project( by here every thing is OK!),so the program runs in my system as I want,BUT! as you know if I want to pick the project up and run it in another system so I should add and reference the dlls again. Is there some professional way to add dlls once and the program could be run on every system whitout being worry about adding dlls? thanks in advance

        J Offline
        J Offline
        JudyL_MD
        wrote on last edited by
        #3

        It's not unprofessional, it just shows that you don't quite get the point of using a DLL versus a static library. some of the differences are: for a DLL: 1) seperate storage from exe 2) multiple exes use the same code 3) to update, change one file 4) usable by exes created with different compilers for a static lib: 1) built into exe 2) each exe uses the built-in code 3) to update, each exe must relink 4) exe must use same compiler as lib (usually) Only you can decide which is appropriate for your project. Judy

        R 1 Reply Last reply
        0
        • J JudyL_MD

          It's not unprofessional, it just shows that you don't quite get the point of using a DLL versus a static library. some of the differences are: for a DLL: 1) seperate storage from exe 2) multiple exes use the same code 3) to update, change one file 4) usable by exes created with different compilers for a static lib: 1) built into exe 2) each exe uses the built-in code 3) to update, each exe must relink 4) exe must use same compiler as lib (usually) Only you can decide which is appropriate for your project. Judy

          R Offline
          R Offline
          redjoy
          wrote on last edited by
          #4

          JudyL_FL wrote:

          It's not unprofessional, it just shows that you don't quite get the point of using a DLL versus a static library. some of the differences are: for a DLL: 1) seperate storage from exe 2) multiple exes use the same code 3) to update, change one file 4) usable by exes created with different compilers for a static lib: 1) built into exe 2) each exe uses the built-in code 3) to update, each exe must relink 4) exe must use same compiler as lib (usually)

          Wow :omg: , I finally learned something that I did not intend to :) . Just kidding, I am working on a large project and now I know why we are in DLL-hell. Your explanation was great.

          Michael If we knew what it was we were doing, it would not be called research, would it? --Albert Einstein

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups