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. Using Custom .dll files - where do they go?

Using Custom .dll files - where do they go?

Scheduled Pinned Locked Moved C#
databasesql-serversysadminquestion
5 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
    mikemilano
    wrote on last edited by
    #1

    I have created a .dll file to manage data with an sql server. I want to build a new windows app that uses that .dll 2 Questions: 1. Where does the .dll file go? In the same directory as my project? 2. When I include the file, is it just like I define other classes? Using namespace.class;

    M M L 3 Replies Last reply
    0
    • M mikemilano

      I have created a .dll file to manage data with an sql server. I want to build a new windows app that uses that .dll 2 Questions: 1. Where does the .dll file go? In the same directory as my project? 2. When I include the file, is it just like I define other classes? Using namespace.class;

      M Offline
      M Offline
      Martin Cook
      wrote on last edited by
      #2

      Assuming you are using Visual Studio.NET, open the solution explorer and right click on the "references" folder, select the "Add reference" menu choice, then click the browse button. Browse to your .DLL file, and click "OK". That will add a reference to your .DLL to the project. From there, just add a line at the top of your source file like this: "using mynamespace;" Martin Cook Who needs cyberspace when you have CP space? :)

      1 Reply Last reply
      0
      • M mikemilano

        I have created a .dll file to manage data with an sql server. I want to build a new windows app that uses that .dll 2 Questions: 1. Where does the .dll file go? In the same directory as my project? 2. When I include the file, is it just like I define other classes? Using namespace.class;

        M Offline
        M Offline
        mikemilano
        wrote on last edited by
        #3

        Thank you , .. as for .NET classes, they should automatically reference .. is this correct? I had a problem where I created an app that would not run on another system which didn't have VS.NET installed. It was an XP Pro box with .NET1.1 installed.

        R 1 Reply Last reply
        0
        • M mikemilano

          Thank you , .. as for .NET classes, they should automatically reference .. is this correct? I had a problem where I created an app that would not run on another system which didn't have VS.NET installed. It was an XP Pro box with .NET1.1 installed.

          R Offline
          R Offline
          Rein Hillmann
          wrote on last edited by
          #4

          I had a problem where I created an app that would not run on another system which didn't have VS.NET installed. As long as the target machine has the .NET framework installed, you should be good to go. Ensure that the framework version on the target machine is the same as the one you compiled your application to.

          1 Reply Last reply
          0
          • M mikemilano

            I have created a .dll file to manage data with an sql server. I want to build a new windows app that uses that .dll 2 Questions: 1. Where does the .dll file go? In the same directory as my project? 2. When I include the file, is it just like I define other classes? Using namespace.class;

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

            hi, This is very similar to a problem i had faced some time back. Here is how i dealt with it (i assume you are working with Visual Studio .NET )- 1: I created a blank Visual Studio .NET 'solution'. 2: I added added two 'projects' into that 'solution'. The projects CLIENT was a web-application and DATACONNECTIVITY was a class library. 3: The DATACONNECTIVITY project was built to a DLL. 4: I then added the reference of the DATACONNECTIVITY's dll to my CLIENT project. (Alternately you can copy this dll into CLIENT's debug folder). 5: Now compile and build CLIENT. hope this helps. Regards, Mithun.

            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