OCX文件已注册但未注册? [英] OCX file registered but not registered?

查看:262
本文介绍了OCX文件已注册但未注册?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以设置如下:

1.我有一个Access VBA项目,我必须保持这个项目,直到我们将所有内容移到一个新的闪亮平台上。

2.此VBA项目包含大量报告,这些报告使用.OCX图表组件。该组件大约15年前在C ++中编写。我可以访问代码,但它现在无法编译,因为我无法获得用于创建它的工具链的正确版本。在某些时候,我可能最终会重新编写代码以使其编译。

3.我可以使用regsvr32注册OCX,但是;

i。好奇的事。如果我像你应该的那样使用带有regsvr32的/ i开关,它就不起作用了。它说的是没有找到切入点。

ii。如果我在没有/ i开关的情况下使用它,它似乎没有故障。我在注册表中看到了具有正确位置等的ocx文件中的条目。

4.当我运行Access代码并生成报告时,我得到此控件不包含对象错误当我试图调用我正在使用的OCX类的属性时,我称之为对象。



有没有人有任何想法?



我尝试了什么:



5.我尝试删除并重新添加参考。仍然没有去。

6.我使用OLEViewer来查看组件,但是当我尝试查看类型信息时,它给了我Library not loaded。

So the setup is as follows:
1. I have an Access VBA project which I have to maintain until we move everything over onto a new shiny platform.
2. This VBA project contains numerous reports, which use a .OCX charting component. This component was written about 15 years ago in C++. I have access to the code, but it won't compile right now because I can't get my hands on the correct version of the toolchain used to create it. At some point I may end up actually reworking the code just to get it to compile.
3. I can register the OCX using regsvr32, BUT;
i. Curious Thing. If I use the /i switch with regsvr32 like you're supposed to, it doesn't work. It says something about not finding an entry point.
ii. If I use it without the /i switch, it seems to go off without a hitch. I see entries in the registry for the ocx file with the correct location etc.
4. When I run the Access code and generate a report, I get a "this control does not contain an Object" error when I attempt to call into a property of the OCX class I'm using called "Object".

Does anyone have any ideas?

What I have tried:

5. I've tried removing and re-adding the reference. Still no go.
6. I've used OLEViewer to peek at the component, but when I try to View Type Information it gives me "Library not loaded".

推荐答案

根据以下内容似乎不需要/ I开关: [ how-to-register-an-activex-control ]

如果.OCX文件是不在你的windows / system32 /文件夹中,你必须在filename.ocx之前添加文件路径

哦,不要忘记以管理员权限运行!



您也可以尝试:

cd \ Windows \ SysWOW64

Regsvr32 / u {Filename.ocx} 

Regsvr32 {Filename.ocx}
The /I switch does not seem to be needed according to: [how-to-register-an-activex-control]
If the .OCX file is not located in your windows/system32/ folder you must add the file path before the filename.ocx
Oh, and don't forget to run with administrator rights !

You can also try:
cd \Windows\SysWOW64
Regsvr32 /u {Filename.ocx}  
Regsvr32 {Filename.ocx}


这篇关于OCX文件已注册但未注册?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆