注册一个ActiveX组件 [英] Registering an ActiveX component

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

问题描述

我使用VB2005制作了ActiveX控件,该控件是一系列向上滚动的Label控件.这是一个非常简单的控件,并且我已经在VB中验证了功能.我为程序集创建了一个签名(强名称密钥).然后,我做了一个安装程序,将编译的dll放入目标OS的Program Files目录中.
安装后,我没有从Excel的ActiveX控件列表中看到可用的控件.然后,我使用了gacutil.exe,并成功在GAC中安装了dll. (强名称键有效!woohoo)但是,Excel仍未在已注册的ActiveX控件列表中显示它.我选择直接指向dll,并被告知不是自我注册.

我的截止日期是要让此控件正常工作,并在今天开始安装我们的工厂,并需要全部帮助!

I''ve made an ActiveX control using VB2005 that is a series of Label controls that scroll up. It''s a very simple control and I''ve validated functionality within VB. I created a signature for the assembly (strong name key). I then made an installer which puts the compiled dll into the target OS''s Program Files directory.

After installation, I don''t see the control available from a list of ActiveX controls for Excel. I then used the gacutil.exe and successfully installed the dll within the GAC. (Strong name key worked! woohoo) But, Excel still didn''t show it in the list of registered ActiveX controls. I selected to point to the dll directly and was told it''s not Self-Registering.

I''m on a deadline to get this control working and to our plant install by today and REALLY NEED HELP!

推荐答案

Mark Randel写道:
Mark Randel wrote:

来自Excel的ActiveX控件列表

from a list of ActiveX controls for Excel



这是一个.Net dll,未以正常的Activex方式注册.您需要使它与com-interop可见.

参见此处 [



This is a .Net dll and is not registered in the normal activex way. You will need to make it com-interop visible.

See here[^] (point 3 specifically).


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

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