Hello,James Peterson2
Welcome to Microsoft Community.
To manually register OCX and DLL files on Windows, you can use the command-line tool. Here are the steps:regsvr32
Open the Command Prompt with administrative privileges. To do this, press the Windows key, type "cmd," right-click on "Command Prompt," and select "Run as administrator."
Navigate to the directory where the OCX or DLL file is located. Use the command to change directories. For example, if the file is in the "C:\MyFiles" directory, type: cd C:\MyFiles
Once you are in the correct directory, use the command to register the file. The syntax is as follows:
regsvr32 <filename>
Replace with the name of the OCX or DLL file you want to register. For example:regsvr32 myocx.ocx ``
Press Enter to execute the command. You should see a dialog box confirming that the registration was successful. Below are some situations that you may encounter:
The error can be because you are trying to register a 32-bit DLL or OCX file through 64-bit Regsvr32. You need to use the 32-bit Regsvr32 that is located in the Syswow64 folder. You can type the following command to register 32-bit DLL or OCX in a 64-bit operating system.
%SystemRoot%\SysWOW64\regsvr32 <filename>
If there are any dependencies (other DLLs or OCXs) required by the file you're registering, make sure they are present in the same directory or already registered.
Here is two articles that may tell you more about registering OCX and DLL on Windows
1-<Register OCX and DLL files as system globals - Windows Client | Microsoft Learn>2-<Regsvr32 | Microsoft Learn>
Hope it helps! If any update, welcome to share with us.
Best regards,
Chandy |Microsoft Community Support Specialist