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. How to register DLL in APP path

How to register DLL in APP path

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
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.
  • S Offline
    S Offline
    sp_ranjan
    wrote on last edited by
    #1

    I have a DLL in my VB application which is used by two other applications. So, i want to put the DLL in Application path and register it in Application path itself. The "DllRegisterServer" or "regsvr32" will register the DLL in System32 even if the DLL is put in Application path. Can someone please help me.Thanks in advance. :)

    J CPalliniC M 4 Replies Last reply
    0
    • S sp_ranjan

      I have a DLL in my VB application which is used by two other applications. So, i want to put the DLL in Application path and register it in Application path itself. The "DllRegisterServer" or "regsvr32" will register the DLL in System32 even if the DLL is put in Application path. Can someone please help me.Thanks in advance. :)

      J Offline
      J Offline
      James R Twine
      wrote on last edited by
      #2

      sp_ranjan wrote:

      The "DllRegisterServer" or "regsvr32" will register the DLL in System32 even if the DLL is put in Application path.

      What? :wtf:    Peace!

      -=- James


      If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
      Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
      DeleteFXPFiles & CheckFavorites (Please rate this post!)

      1 Reply Last reply
      0
      • S sp_ranjan

        I have a DLL in my VB application which is used by two other applications. So, i want to put the DLL in Application path and register it in Application path itself. The "DllRegisterServer" or "regsvr32" will register the DLL in System32 even if the DLL is put in Application path. Can someone please help me.Thanks in advance. :)

        CPalliniC Online
        CPalliniC Online
        CPallini
        wrote on last edited by
        #3

        You need to register only COM DLL's. :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.

        In testa che avete, signor di Ceprano?

        1 Reply Last reply
        0
        • S sp_ranjan

          I have a DLL in my VB application which is used by two other applications. So, i want to put the DLL in Application path and register it in Application path itself. The "DllRegisterServer" or "regsvr32" will register the DLL in System32 even if the DLL is put in Application path. Can someone please help me.Thanks in advance. :)

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          If you just want your DLL to be in a common place that other apps can find it then you can use SHGetFolderPath() with CSIDL value of CSIDL_PROGRAM_FILES_COMMON or CSIDL_PROGRAM_FILES. This is a more modern approach then using the path environment variable.

          1 Reply Last reply
          0
          • S sp_ranjan

            I have a DLL in my VB application which is used by two other applications. So, i want to put the DLL in Application path and register it in Application path itself. The "DllRegisterServer" or "regsvr32" will register the DLL in System32 even if the DLL is put in Application path. Can someone please help me.Thanks in advance. :)

            M Offline
            M Offline
            Mark Salsbery
            wrote on last edited by
            #5

            I forgot to mention, if you use a subfolder of "Program Files" like is typically used in installations then your apps can use GetEnvironmentVariable()/SetEnvironmentVariable() to set their own process PATH environment variables if necessary (to point to your common DLL folder).

            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