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