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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. DLL coding dilemma...

DLL coding dilemma...

Scheduled Pinned Locked Moved IT & Infrastructure
questionlounge
5 Posts 3 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.
  • S Offline
    S Offline
    Shy Agam
    wrote on last edited by
    #1

    Hey all, I'm facing a small dilemma... I'm currently coding a dll which will be used in one of my projects. As I go further and further with the development of my dll, it becomes clearer that a specific coded dll would serve me better as opposed to a general coded dll, when it comes to both performence and coding issues. By specific coded dll I mean that I write my dll to be used only with my current project. If I'll ever want to use it in another project, I'll have to make changes. What should I do? Which is a better programming practice? Not really sure where to post this question... Maybe I'll post it in another forum as well. Thanks in advance, Shy.

    realJSOPR D 2 Replies Last reply
    0
    • S Shy Agam

      Hey all, I'm facing a small dilemma... I'm currently coding a dll which will be used in one of my projects. As I go further and further with the development of my dll, it becomes clearer that a specific coded dll would serve me better as opposed to a general coded dll, when it comes to both performence and coding issues. By specific coded dll I mean that I write my dll to be used only with my current project. If I'll ever want to use it in another project, I'll have to make changes. What should I do? Which is a better programming practice? Not really sure where to post this question... Maybe I'll post it in another forum as well. Thanks in advance, Shy.

      realJSOPR Offline
      realJSOPR Offline
      realJSOP
      wrote on last edited by
      #2

      If you're going to make it specific to one program, what's the point in making it into a DLL. You way want to look into putting any of the truly common functions into a .LIB, and then linking the .LIB to your apps while putting the app-specific stuff into the app itself. Of course, I'm assuming that you're using C++ and not some abomination, like VB. I don't know if VB lets you create LIB files.

      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
      -----
      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

      S 1 Reply Last reply
      0
      • realJSOPR realJSOP

        If you're going to make it specific to one program, what's the point in making it into a DLL. You way want to look into putting any of the truly common functions into a .LIB, and then linking the .LIB to your apps while putting the app-specific stuff into the app itself. Of course, I'm assuming that you're using C++ and not some abomination, like VB. I don't know if VB lets you create LIB files.

        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
        -----
        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

        S Offline
        S Offline
        Shy Agam
        wrote on last edited by
        #3

        I need to inject my dll into every running process... :)

        realJSOPR 1 Reply Last reply
        0
        • S Shy Agam

          I need to inject my dll into every running process... :)

          realJSOPR Offline
          realJSOPR Offline
          realJSOP
          wrote on last edited by
          #4

          Where, in your previous description, did you mention that. It annoys me to waste my time answering a question only to find out that the entire list of requirements hasn't been specified. Further, why would you need to inject your DLL into every running process? I hope you're not doing this for distribution in something like a spyware app.

          "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
          -----
          "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

          1 Reply Last reply
          0
          • S Shy Agam

            Hey all, I'm facing a small dilemma... I'm currently coding a dll which will be used in one of my projects. As I go further and further with the development of my dll, it becomes clearer that a specific coded dll would serve me better as opposed to a general coded dll, when it comes to both performence and coding issues. By specific coded dll I mean that I write my dll to be used only with my current project. If I'll ever want to use it in another project, I'll have to make changes. What should I do? Which is a better programming practice? Not really sure where to post this question... Maybe I'll post it in another forum as well. Thanks in advance, Shy.

            D Offline
            D Offline
            Dai Hui
            wrote on last edited by
            #5

            Maybe you can split it into two dlls?

            Dai Hui LW-WORKS Software - Creator of Clipboard Recorder Windows Clipboard utility

            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