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. COM
  4. Register a DLL server

Register a DLL server

Scheduled Pinned Locked Moved COM
c++comsysadminhelpquestion
3 Posts 2 Posters 5 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
    Tony Li
    wrote on last edited by
    #1

    I built an ATL COM DLL server. When I tried to register it after its build, some error happened to the registration process. The error says, Performing registration RegSvr32: DllRegisterServer in MyServer.dll failed. Return code was: 0x80070716 I've looked up the error code. It says, "The specified resource name can not be found in the image file." Does anyone know what happened to the registration? Thanks, Tony

    A 1 Reply Last reply
    0
    • T Tony Li

      I built an ATL COM DLL server. When I tried to register it after its build, some error happened to the registration process. The error says, Performing registration RegSvr32: DllRegisterServer in MyServer.dll failed. Return code was: 0x80070716 I've looked up the error code. It says, "The specified resource name can not be found in the image file." Does anyone know what happened to the registration? Thanks, Tony

      A Offline
      A Offline
      Alex Gorev
      wrote on last edited by
      #2

      Hi, In the header file of your COM object you must have a DECLARE_REGISTRY_RESOURCEID(IDR_MYREG) macro. In the resources you must have a REGISTRY folder with IDR_MYREG defined inside. If you have a look at your *.rc file you will find out, that it just match the registry ID with your *.rgs file, which also must be a part of the project: IDR_MYREG REGISTRY DISCARDABLE "MyReg.rgs" Regards, Alex Gorev, Dundas Software.

      T 1 Reply Last reply
      0
      • A Alex Gorev

        Hi, In the header file of your COM object you must have a DECLARE_REGISTRY_RESOURCEID(IDR_MYREG) macro. In the resources you must have a REGISTRY folder with IDR_MYREG defined inside. If you have a look at your *.rc file you will find out, that it just match the registry ID with your *.rgs file, which also must be a part of the project: IDR_MYREG REGISTRY DISCARDABLE "MyReg.rgs" Regards, Alex Gorev, Dundas Software.

        T Offline
        T Offline
        Tony Li
        wrote on last edited by
        #3

        Thanks! I'm just curious how you find the root of the problem. Tony

        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