Error: " DllRegisterServer failed with error code 0x80070005" during registration of DLL on Windows 7
Registry has to be updated during registration of DLL file. This Microsoft error message stating that there is insufficient permission. In Windows 7, the permission requirement is stricter, even a Windows user with local administrator crediential / permission does not have enough permission to register a DLL file, one has to login as the administrator credential in order to have sufficient permission to write to registry or update system32 folder.
Register the DLL by using the administrator account.