If you receive an error when registering a 32-bit DLL or OCX on a 64-bit version of Windows, follow these steps:
1. Open an elevated command prompt – its important the command window has Administrator access otherwise you will continue to see errors:
in Windows Vista or 7:Select Start > All Programs > AccessoriesRight-click on “Command Prompt” in the AccessoriesClick “Run as Administrator”
in Windows 8:Open the “Quick Link” menu (by holding down the Windows 8 logo key and pressing the X key)Select “Command Prompt (Admin)”Select “Yes” to allow changes
2. If the 32-bit DLL or OCX is in the %systemroot%\System32 folder, move it to the %systemroot%\SysWoW64 folder.
3.Run the following command:
%systemroot%\SysWoW64\regsvr32 <full path of the DLL or OCX>
In my example this would be: %systemroot%\SysWOW64\regsvr32 C:\Windows\SysWOW64\WebAgent4.OCX