DllRegisterServer failed with error code 0x80004005
I'm fairly new to Windows 10 and I'm trying to register a dll for the first time. When I go to the Cmd prompt and enter regsvr32 C:\My.dll I get the error shown in the Title of this question. I am an Administrator so what could be wrong?
Re: DllRegisterServer failed with error code 0x80004005
Thank you for the useful information that I'll save for future needs, but both methods failed with the same error. The dll was written in 32 bit so I suspect I have to rewrite it in 64 bit.
Re: DllRegisterServer failed with error code 0x80004005
After opening the Start menu start typing "command prompt". It should appear in the list of search results. Click "Run as administrator" in the pane on the right-hand side.