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#
  4. DLLs - Creating

DLLs - Creating

Scheduled Pinned Locked Moved C#
csharphelpquestion
7 Posts 6 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.
  • E Offline
    E Offline
    Expert Coming
    wrote on last edited by
    #1

    How do I create a DLL with C# I have searched google and codeproject, but they both find articles that just say "DLL" once in the article(that is what i cearch engine does). Thanks for any and all help!

    R D 2 Replies Last reply
    0
    • E Expert Coming

      How do I create a DLL with C# I have searched google and codeproject, but they both find articles that just say "DLL" once in the article(that is what i cearch engine does). Thanks for any and all help!

      R Offline
      R Offline
      rakesh_nits
      wrote on last edited by
      #2

      In the project property either use class library or use the class library template while opening a new project.

      1 Reply Last reply
      0
      • E Expert Coming

        How do I create a DLL with C# I have searched google and codeproject, but they both find articles that just say "DLL" once in the article(that is what i cearch engine does). Thanks for any and all help!

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        Create a Class Library project. This will create a .NET Framework Assembly though. C#, or any other Managed language, can't make a .DLL that exports library functions like C++ can. The .NET Framework doesn't support C-style exports. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

        E 1 Reply Last reply
        0
        • D Dave Kreskowiak

          Create a Class Library project. This will create a .NET Framework Assembly though. C#, or any other Managed language, can't make a .DLL that exports library functions like C++ can. The .NET Framework doesn't support C-style exports. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

          E Offline
          E Offline
          Expert Coming
          wrote on last edited by
          #4

          So how do I use the files I create, any references, and thanks that will help a lot.

          K L 2 Replies Last reply
          0
          • E Expert Coming

            So how do I use the files I create, any references, and thanks that will help a lot.

            K Offline
            K Offline
            Kodanda Pani
            wrote on last edited by
            #5

            You Can use them by adding a reference to your DLL. Thanks and Regards Pani

            T 1 Reply Last reply
            0
            • E Expert Coming

              So how do I use the files I create, any references, and thanks that will help a lot.

              L Offline
              L Offline
              LongRange Shooter
              wrote on last edited by
              #6

              There are two ways that your class library can be used: 1) The 'safest' way is to create your class library project/solution, write your code, compile it as a dll, then copy that into the /obj directory of any project that will use it. Then add reference, browse to the obj directory and add a using statement for your library namespace. 2) You add the class library project to the solution that will consume your project. This is only best if this is the only solution that would use that class library. In this method you would do an Add Reference, click the Project tab, then select your class library project and add it. It is highly suggested that you modify your AssemblyInfo.cs file and make the version number something like "1.0.0". This way you control the version number of your dll with each release. Otherwise you create a new copy of your dll even if it is a minor implementation change. There are 10 kinds of people in the world.
              Those that read binary...
              ...and those who don't.

              1 Reply Last reply
              0
              • K Kodanda Pani

                You Can use them by adding a reference to your DLL. Thanks and Regards Pani

                T Offline
                T Offline
                tiancaidao
                wrote on last edited by
                #7

                Yes, the project will create a .dll file when being referenced.

                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