在 Windows 7 64 位注册 RichTx32.Ocx
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6335546/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Register RichTx32.Ocx in Windows 7 64 bit
提问by Rick
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.
我正在尝试为我在 Access 2010(文件格式 2003 mdb)中处理的应用程序注册 RichTx32.Ocx。我已更新到 Windows 7 64 位(从 Windows XP SP3 32 位)并且无法注册 ActiveX OCX。
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"
我已将该文件放在 system32 文件夹中并收到以下消息:“模块“RICHTX32.OCX”可能与您正在运行的 Windows 版本不兼容。检查该模块是否与 x86(32 位)兼容) 或 x64(64 位)版本的 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."
当我将文件放入 SysWOW64 文件夹并在该位置运行 regsvr32 时,我收到以下错误消息:“模块“C:\Windows\SysWOW64\RICHTX32.OCX”已加载,但对 DllRegisterServer 的调用失败,错误代码为 0x8002801c .”
回答by David Heffernan
There are three obvious possibilities for this problem:
这个问题有三种明显的可能性:
- You are running the 64 bit version of regsvr32.
- You have UAC enabled and when the OCX self-registers, its attempts to write to HKLM fail.
- The OCX does not run under Windows 7.
- 您正在运行 64 位版本的 regsvr32。
- 您启用了 UAC,当 OCX 自注册时,它尝试写入 HKLM 失败。
- OCX 不能在 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:
为了解决问题 1&2,我执行以下操作:
- 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
- 以管理员身份打开命令提示符(右键单击命令提示符的快捷方式并选择“以管理员身份运行”)。
- 运行此命令:
C:\Windows\SysWOW64\regsvr32 C:\Windows\SysWOW64\RICHTX32.OCX
回答by Rick
Did the following and seems to have worked. Aperently, I had to run CMD in Administrator Mode, even though I am a local administrator.
做了以下工作,似乎奏效了。显然,即使我是本地管理员,我也必须在管理员模式下运行 CMD。
(1) First, you must perform this on EVERY computer that has 2010
(1) 首先,您必须在每台装有 2010 的计算机上执行此操作
(2) Copy RichTx32.ocx to the following directory: C:\Windows\SysWoW64
(2) 将 RichTx32.ocx 复制到以下目录:C:\Windows\SysWoW64
(3) Click the Windows 7 Start Button and in the Search area, type "command"
(3) 单击 Windows 7 开始按钮并在搜索区域中键入“命令”
(4) The search will bring up a number of items, including "Command Prompt" at the top
(4) 搜索会出现多个项目,包括顶部的“命令提示符”
(5) Right click the "Command Prompt" banner, and select "Run as Administrator"
(5) 右键单击“命令提示符”横幅,然后选择“以管理员身份运行”
(6) At the command prompt, enter: %systemroot%\SysWoW64\regsvr32.exe RichTx32.ocx
(6) 在命令提示符下输入:%systemroot%\SysWoW64\regsvr32.exe RichTx32.ocx
(7) This should successfully register your OCX.
(7) 这应该会成功注册您的 OCX。
Thanks to:
Rich Locus Logicwurks, LLC www.logicwurks.com
感谢:
Rich Locus Logicwurks, LLC www.logicwurks.com
回答by Alice
my english not good,so i hope you understand.
我的英语不好,所以我希望你能理解。
Ran that command C:\Windows\SysWOW64\regsvr32 C:\Windows\SysWOW64\RICHTX32.OCX and got the error: "The module "C:\Windows\SysWOW64\RICKTX32.OCX" was loaded but the call to DllRegisterServer failed with error code 0x8002801c." – Rick Jun 13 '11 at 20:18
运行该命令 C:\Windows\SysWOW64\regsvr32 C:\Windows\SysWOW64\RICHTX32.OCX 并得到错误:“模块“C:\Windows\SysWOW64\RICKTX32.OCX”已加载,但对 DllRegisterServer 的调用失败错误代码 0x8002801c。” – 里克 2011 年 6 月 13 日 20:18
ok in windows7 you need do this "user account control settings -----than "Never notice " ---than reset ,
好的,在 windows7 中,您需要执行此操作“用户帐户控制设置-----而不是“从不通知”---而不是重置,
?Run this command: C:\Windows\SysWOW64\regsvr32 C:\Windows\SysWOW64\RICHTX32.OCX
?运行此命令:C:\Windows\SysWOW64\regsvr32 C:\Windows\SysWOW64\RICHTX32.OCX
it's gone be ok!
没事了!