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 detect which is a COM dll and which a regular dll file? [modified]

How to detect which is a COM dll and which a regular dll file? [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
comtutorialquestion
3 Posts 2 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
    sheny
    wrote on last edited by
    #1

    Which is the best and sure way to detect that the DLL file is a COM DLL file or it is a regular DLL file? -- modified at 13:42 Wednesday 15th August, 2007

    S 1 Reply Last reply
    0
    • S sheny

      Which is the best and sure way to detect that the DLL file is a COM DLL file or it is a regular DLL file? -- modified at 13:42 Wednesday 15th August, 2007

      S Offline
      S Offline
      sw thi
      wrote on last edited by
      #2

      Try and register the dll using Regsvr32. If it is a com dll you would get a success message saying the dll is registered successfully. If it is not a com dll it would give you and error message saying that the entry point DllRegisterServer was not found, which means that the dll is not a com dll.

      "What's on your mind, if you will allow the overstatement?"

      S 1 Reply Last reply
      0
      • S sw thi

        Try and register the dll using Regsvr32. If it is a com dll you would get a success message saying the dll is registered successfully. If it is not a com dll it would give you and error message saying that the entry point DllRegisterServer was not found, which means that the dll is not a com dll.

        "What's on your mind, if you will allow the overstatement?"

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

        Thanks, I suppose that I could use GetProcAddress for DllRegisterServer and DllUnregisterServer

        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