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. Registering a Win32 DLL

Registering a Win32 DLL

Scheduled Pinned Locked Moved C / C++ / MFC
question
8 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
    SiddharthAtw
    wrote on last edited by
    #1

    How can I register a Win32 DLL in regisret so that it can be accessible to a VB client?

    P J 2 Replies Last reply
    0
    • S SiddharthAtw

      How can I register a Win32 DLL in regisret so that it can be accessible to a VB client?

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      regsvr32 dllname this command will register the dll in the registry... This is done for COM inproc dll. I guess you dont have to register a win32 dll to be accessed by vb client. The dll should be in the path or in the same folder where the vb binary lies. Besides it is same as using "user32.dll" of windows.


      "When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)

      S 1 Reply Last reply
      0
      • P Prakash Nadar

        regsvr32 dllname this command will register the dll in the registry... This is done for COM inproc dll. I guess you dont have to register a win32 dll to be accessed by vb client. The dll should be in the path or in the same folder where the vb binary lies. Besides it is same as using "user32.dll" of windows.


        "When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)

        S Offline
        S Offline
        SiddharthAtw
        wrote on last edited by
        #3

        If I register using regsvr32 it gives error the it cannot "Find DllEntryPoint"

        P 1 Reply Last reply
        0
        • S SiddharthAtw

          If I register using regsvr32 it gives error the it cannot "Find DllEntryPoint"

          P Offline
          P Offline
          Prakash Nadar
          wrote on last edited by
          #4

          That means that its not a com dll, so no point in registring it, I dont know how to do it in VB but i guess you will find plenty of examples how to use win32 dll in vb.


          "When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)

          S 1 Reply Last reply
          0
          • S SiddharthAtw

            How can I register a Win32 DLL in regisret so that it can be accessible to a VB client?

            J Offline
            J Offline
            John M Drescher
            wrote on last edited by
            #5

            Write the dll as a com component and do what the other person said. John

            P 1 Reply Last reply
            0
            • P Prakash Nadar

              That means that its not a com dll, so no point in registring it, I dont know how to do it in VB but i guess you will find plenty of examples how to use win32 dll in vb.


              "When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)

              S Offline
              S Offline
              Steve S
              wrote on last edited by
              #6

              For VB6 there's an add-in which lets you generate definitions and stuff to allow direct use of the Win32 API when appropriate. Essentially, you have a code module within which the DLL exported entry points are declared, along with their parameters. You can also alias the entry points, to give them friendly names, then use them like regular VB sub/functions. Steve S (Me, write in VB? - No, you must be confusing me with someone else...)

              1 Reply Last reply
              0
              • J John M Drescher

                Write the dll as a com component and do what the other person said. John

                P Offline
                P Offline
                Prakash Nadar
                wrote on last edited by
                #7

                John M. Drescher wrote: what the other person said The other person??


                "When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)

                J 1 Reply Last reply
                0
                • P Prakash Nadar

                  John M. Drescher wrote: what the other person said The other person??


                  "When death smiles at you, only thing you can do is smile back at it" - Russel Crowe (Gladiator)

                  J Offline
                  J Offline
                  John M Drescher
                  wrote on last edited by
                  #8

                  You, Sorry I was in a hurry and did not copy your name... John

                  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