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?
Printable View
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?
If you are using a 64-bit version of Windows and the dll is 32-bit, you need to use the version of regsvr32 in the windows/syswow64 folder
How do I do that?
If you are using command prompt, you can do it like this:
...or:Code:cd c:\windows\syswow64
regsvr32.exe "c:\PathToDll\dllname.dll"
Code:c:\windows\syswow64\regsvr32.exe "c:\PathToDll\dllname.dll"
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.
Another potential issue is that for this you should run command prompt as an admin (it doesn't happen automatically, even if you user is an admin).
To do that, right-click on the link to command prompt and select "run as administrator".
Si, I'm sorry to bother you again but when I open the Windows 10 Start menu I see this.
Attachment 183046
Where do I find the Cmd prompt?
Near the bottom of that programs list should be a folder called "Windows System", and Command Prompt should be in there.
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.
Attachment 183048
Thanks for trying but I get the same error so I guess it's rewrite time.
One last idea - what if you try to register My.dll from a subfolder of C:\ instead of the bare root C:\ that you are currently using?
Hello, did you ever get this sorted, Martin?