Windows – Register RichTx32.Ocx in Windows 7 64 bit

ms-accessocxwindows

I am trying to register RichTx32.Ocx for an application I am working on in Access 2010 (File Format 2003 mdb). I have been updated to Windows 7 64 bit (from Windows XP SP3 32 bit) and can't get the ActiveX OCX to register.

I have put the file in the system32 folder and get the following message: "The module "RICHTX32.OCX" may not compatible with the version of Windows that you're running. Check if the module is compatible with an x86 (32-bit) or x64 (64-bit) version of regsvr32.exe"

When I put the file in the SysWOW64 folder and run regsvr32 to that location, I get the following error message: "The moduile "C:\Windows\SysWOW64\RICHTX32.OCX" was loaded but the call to DllRegisterServer failed with error code 0x8002801c."

Best Answer

There are three obvious possibilities for this problem:

  1. You are running the 64 bit version of regsvr32.
  2. You have UAC enabled and when the OCX self-registers, its attempts to write to HKLM fail.
  3. The OCX does not run under Windows 7.

I think the latter is unlikely and anyway I can't do much to help!

To get around issues 1&2 I do the following:

  • Open a Command Prompt as administrator (right click on a shortcut to the Command Prompt and select "Run as Administrator").
  • Run this command: C:\Windows\SysWOW64\regsvr32 C:\Windows\SysWOW64\RICHTX32.OCX