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. C / C++ / MFC
  4. new to dlls!

new to dlls!

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
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.
  • 6 Offline
    6 Offline
    69 Bay
    wrote on last edited by
    #1

    Hi again I have various classes that I use fairly regularly (mainly to do with souncards). I was wondering whether it is worth while generating a dll with the classes. What are the advantages of using dlls over just including the classes within my application (other than the exe will be smaller)? Also, can you use threads in dlls as well (I am new to threads as well!) Thanks for (yet more) help! Mike

    C A realJSOPR 3 Replies Last reply
    0
    • 6 69 Bay

      Hi again I have various classes that I use fairly regularly (mainly to do with souncards). I was wondering whether it is worth while generating a dll with the classes. What are the advantages of using dlls over just including the classes within my application (other than the exe will be smaller)? Also, can you use threads in dlls as well (I am new to threads as well!) Thanks for (yet more) help! Mike

      C Offline
      C Offline
      Chris Gao
      wrote on last edited by
      #2

      Hi Mike, Well, I have no idea about the dll thing. Since you talked about something related to soundcard, have you tried "The Synthesis ToolKit in C++ (STK)" library before? You can download it from: http://ccrma.stanford.edu/software/stk/[^] I don't know whether it fit your application, but for mine, it just perfect. Regards, Chris

      1 Reply Last reply
      0
      • 6 69 Bay

        Hi again I have various classes that I use fairly regularly (mainly to do with souncards). I was wondering whether it is worth while generating a dll with the classes. What are the advantages of using dlls over just including the classes within my application (other than the exe will be smaller)? Also, can you use threads in dlls as well (I am new to threads as well!) Thanks for (yet more) help! Mike

        A Offline
        A Offline
        Abebe
        wrote on last edited by
        #3

        Well one of the advantages is that with a DLL you can just add the library to your project and include the corresponding header file and then you are able to access the functionality in that DLL. It seems annoying to constantly copy the same header+implementation file to you project. Er zit een korstje op mijn aars.

        1 Reply Last reply
        0
        • 6 69 Bay

          Hi again I have various classes that I use fairly regularly (mainly to do with souncards). I was wondering whether it is worth while generating a dll with the classes. What are the advantages of using dlls over just including the classes within my application (other than the exe will be smaller)? Also, can you use threads in dlls as well (I am new to threads as well!) Thanks for (yet more) help! Mike

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

          If you use them in a lot of your applications, it's worth making DLLs. If you don't, then no, it's not. There are "trade-offs", but there are no real advantages unless a LOT/all of your apps use those DLLs. Yes, you can use threads in DLLs. ------- sig starts "I've heard some drivers saying, 'We're going too fast here...'. If you're not here to race, go the hell home - don't come here and grumble about going too fast. Why don't you tie a kerosene rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt "...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
          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