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. ATL / WTL / STL
  4. is DLL appropriate

is DLL appropriate

Scheduled Pinned Locked Moved ATL / WTL / STL
csharpc++visual-studiocomtools
5 Posts 4 Posters 7 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.
  • B Offline
    B Offline
    bkelly13
    wrote on last edited by
    #1

    Visual Studio, C++, TCP utility I am creating a utility to handle TCP/IP I/O for a telemetry project. It has a rather high and continuous bandwidth. Four or maybe more instances will be run at one time. It seems to me that now is the time to take this class and put it into a DLL. Is this an appropriate use of DLL? Do you have a favorite article or list of important things to remember when creating my first DLL?

    Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

    G L A 3 Replies Last reply
    0
    • B bkelly13

      Visual Studio, C++, TCP utility I am creating a utility to handle TCP/IP I/O for a telemetry project. It has a rather high and continuous bandwidth. Four or maybe more instances will be run at one time. It seems to me that now is the time to take this class and put it into a DLL. Is this an appropriate use of DLL? Do you have a favorite article or list of important things to remember when creating my first DLL?

      Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      ok, I guess you're continuing your TCP API project from (somewhere below this in the forum).. looking at this :-

      bkelly13 wrote:

      Four or maybe more instances

      I (personally) think that alone is not necessarily a good indicator of when to use a dll - you're going to create 4 instances of a class that implements an API, on the face of it, what is there in this that says that class/code needs to be in a dll ? you program will start, load the dll is if has to, instantiate x copies of the class as required, but wouldn't really care if the code is in a dll or not ... So... you could say back to me, I need to use a dll :- (a) so I can implement a plugin or make it easier to change just that API (b) to encapsulate my API for deployment, particularly where I have multiple programs that all need the same thing, so they each use the same dll ergo code/api this is only one consideration I guess Brian

      1 Reply Last reply
      0
      • B bkelly13

        Visual Studio, C++, TCP utility I am creating a utility to handle TCP/IP I/O for a telemetry project. It has a rather high and continuous bandwidth. Four or maybe more instances will be run at one time. It seems to me that now is the time to take this class and put it into a DLL. Is this an appropriate use of DLL? Do you have a favorite article or list of important things to remember when creating my first DLL?

        Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        If you want to separate out some of your functionality then a DLL is one way to do it. But unless you are sharing the DLL with other applications then it offers no particular benefit; a static library would be just as useful.

        B 1 Reply Last reply
        0
        • L Lost User

          If you want to separate out some of your functionality then a DLL is one way to do it. But unless you are sharing the DLL with other applications then it offers no particular benefit; a static library would be just as useful.

          B Offline
          B Offline
          bkelly13
          wrote on last edited by
          #4

          Replying to both posts: Eventually I'll make this available to others to use. Then, from my reading, it becomes easier to incorporate into another project when built as a DLL. Until then, my plate is full in developing the message app (that uses the TCP IP project) and the TCP project itself and I don't need that extra step. I'll leave it is as a static library until I am ready to share. Thanks for your thoughts.

          Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

          1 Reply Last reply
          0
          • B bkelly13

            Visual Studio, C++, TCP utility I am creating a utility to handle TCP/IP I/O for a telemetry project. It has a rather high and continuous bandwidth. Four or maybe more instances will be run at one time. It seems to me that now is the time to take this class and put it into a DLL. Is this an appropriate use of DLL? Do you have a favorite article or list of important things to remember when creating my first DLL?

            Thank you for your time If you work with telemetry, please check this bulletin board: www.irigbb.com

            A Offline
            A Offline
            Albert Holguin
            wrote on last edited by
            #5

            When choosing to go to a DLL, think whether you (or someone else) will be using these methods in another application, or whether you'd like an expandable interface via DLL based plug-ins. A common example of DLL usage would be in implementing audio codecs (since any exe that plays audio can/would use it). Additionally, functionality can be expanded/removed from applications via DLLs. Plug-ins can be implemented using DLLs with a standard interface. The application can look for any DLLs with the standard plug-in interface and load what's available.

            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