Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Register RichTx32.Ocx in Windows 7 64 bit

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."

like image 514
Rick Avatar asked Dec 03 '22 08:12

Rick


2 Answers

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
like image 94
David Heffernan Avatar answered Dec 28 '22 13:12

David Heffernan


Did the following and seems to have worked. Aperently, I had to run CMD in Administrator Mode, even though I am a local administrator.

(1) First, you must perform this on EVERY computer that has 2010

(2) Copy RichTx32.ocx to the following directory: C:\Windows\SysWoW64

(3) Click the Windows 7 Start Button and in the Search area, type "command"

(4) The search will bring up a number of items, including "Command Prompt" at the top

(5) Right click the "Command Prompt" banner, and select "Run as Administrator"

(6) At the command prompt, enter: %systemroot%\SysWoW64\regsvr32.exe RichTx32.ocx

(7) This should successfully register your OCX.

Thanks to:
Rich Locus Logicwurks, LLC www.logicwurks.com

like image 25
Rick Avatar answered Dec 28 '22 13:12

Rick