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. dll loading?

dll loading?

Scheduled Pinned Locked Moved C#
question
9 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.
  • N Offline
    N Offline
    nhqlbaislwfiikqraqnm
    wrote on last edited by
    #1

    .

    L N N C F 5 Replies Last reply
    0
    • N nhqlbaislwfiikqraqnm

      .

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

      Add your directory name to the environment PATH variable. Windows searches these directories to find referenced dll files.

      N 1 Reply Last reply
      0
      • N nhqlbaislwfiikqraqnm

        .

        N Offline
        N Offline
        Not Active
        wrote on last edited by
        #3

        Typically if you have shared assemblies they are placed in the GAC. You may want to read these How the Runtime Locates Assemblies[^] Locating the Assembly through Codebases or Probing[^]


        only two letters away from being an asset

        1 Reply Last reply
        0
        • L Lost User

          Add your directory name to the environment PATH variable. Windows searches these directories to find referenced dll files.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          I think you may also want to read these How the Runtime Locates Assemblies[^] Locating the Assembly through Codebases or Probing[^]


          only two letters away from being an asset

          L 1 Reply Last reply
          0
          • N Not Active

            I think you may also want to read these How the Runtime Locates Assemblies[^] Locating the Assembly through Codebases or Probing[^]


            only two letters away from being an asset

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

            Yes, it would seem my brain saw the word 'dll' and immediately thought 'C/C++', whereas the actual forum is C#. I'll check these links out for future reference; thanks.

            1 Reply Last reply
            0
            • N nhqlbaislwfiikqraqnm

              .

              N Offline
              N Offline
              Nissim Salomon
              wrote on last edited by
              #6

              Hi I think that you are searching for the Assembly.Load method that load an assembly for dynamic invocation.

              1 Reply Last reply
              0
              • N nhqlbaislwfiikqraqnm

                .

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                Given that you're creating them yourself, why not just put them in the right place ? c:\ is a RETARDED place to put dlls for your program.

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                1 Reply Last reply
                0
                • N nhqlbaislwfiikqraqnm

                  .

                  F Offline
                  F Offline
                  freakyit
                  wrote on last edited by
                  #8

                  hi, if this dll is a com-dll you can register the dll with regsvr32 "C:\your_com.dll". To use the dll you need to declare the function like win32api in dotnet with a DllImport().. if the dll is a .net assembly load the dll with System.Reflection.Assembly.LoadFile(). don't know what you want to do or your program.. if you dont want to write code using the dlls try to reinstall your programm using the dlls :) greetings

                  N 1 Reply Last reply
                  0
                  • F freakyit

                    hi, if this dll is a com-dll you can register the dll with regsvr32 "C:\your_com.dll". To use the dll you need to declare the function like win32api in dotnet with a DllImport().. if the dll is a .net assembly load the dll with System.Reflection.Assembly.LoadFile(). don't know what you want to do or your program.. if you dont want to write code using the dlls try to reinstall your programm using the dlls :) greetings

                    N Offline
                    N Offline
                    nhqlbaislwfiikqraqnm
                    wrote on last edited by
                    #9

                    Thank you for our help. I´ll try it. THANKS at all:thumbsup:

                    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