Search code examples
c++visual-studio-2012comatlregsvr32

RegSvr32 not making registry entries for COM object


I have a newly created ATL simple object in an existing ATL COM project. Now, registering this DLL using regsvr32 works OK. I get a message saying DLL registration was successful. But, it fails to make entries under HKCR. I can see entries for all other objects but for this one.

I am using VS2012 Professional to compile my project and the configuration type is x64. ** I have recently upgraded my solution from VS2005 to VS2012 and this is my first object under the newly created solution. **

Can anyone point me in the right direction here?


Solution

  • OK, even though my command prompt directory was the same as the one in which the DLL to be registered was located when I used the command- C:\windows\system32\regsvr32.exe DLLname.dll, it was registering the DLL located in System 32 folder.

    Using absolute path for the DLL registered the correct DLL and new progID's appeared in HKCR.