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. Test registered dll

Test registered dll

Scheduled Pinned Locked Moved C / C++ / MFC
windows-adminquestionannouncementlounge
4 Posts 3 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.
  • T Offline
    T Offline
    tuxyboy
    wrote on last edited by
    #1

    Is there a way to test if a dll which needs to be registered (either way) is registered correctly on that particular PC? If I don't know the classes, functions it's supposed to expose? I need a general solution for an automatic update feature. I'm thinking about something like getting the dll's classID(s) than search for it in the registry? Anybody ever done something like this?

    D 1 Reply Last reply
    0
    • T tuxyboy

      Is there a way to test if a dll which needs to be registered (either way) is registered correctly on that particular PC? If I don't know the classes, functions it's supposed to expose? I need a general solution for an automatic update feature. I'm thinking about something like getting the dll's classID(s) than search for it in the registry? Anybody ever done something like this?

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      tuxyboy wrote:

      Is there a way to test if a dll which needs to be registered (either way) is registered correctly on that particular PC?

      One would like to think that the DLL's DllRegisterServer() function would return an error code if that happened.


      "A good athlete is the result of a good and worthy opponent." - David Crow

      "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

      T 1 Reply Last reply
      0
      • D David Crow

        tuxyboy wrote:

        Is there a way to test if a dll which needs to be registered (either way) is registered correctly on that particular PC?

        One would like to think that the DLL's DllRegisterServer() function would return an error code if that happened.


        "A good athlete is the result of a good and worthy opponent." - David Crow

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        T Offline
        T Offline
        tuxyboy
        wrote on last edited by
        #3

        The case is as follows. The dll's are installed and registered during the app's first install or when a new version is available. BUT when it's not I don't want to call registerserver. I don't know how but it happens sometimes that the already installed files (registered dll's) became unregistered somehow and stop working even if the updater app doesn't touch them, cause there is no new version available. The files are there but unregistered. So I want a method that every time the updatecheck runs it tests all the dll's needed to be registered even if it's not an updatable file, just to be on the safe side.

        D 1 Reply Last reply
        0
        • T tuxyboy

          The case is as follows. The dll's are installed and registered during the app's first install or when a new version is available. BUT when it's not I don't want to call registerserver. I don't know how but it happens sometimes that the already installed files (registered dll's) became unregistered somehow and stop working even if the updater app doesn't touch them, cause there is no new version available. The files are there but unregistered. So I want a method that every time the updatecheck runs it tests all the dll's needed to be registered even if it's not an updatable file, just to be on the safe side.

          D Offline
          D Offline
          DevMentor org
          wrote on last edited by
          #4

          there is no harm to register a dll multiple times, no reference count is kept, so this would simplify what you're trying to do with your installer. simply register the dll after it gets installed!:-D

          Yours Truly, The One and Only!

          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