如何将vb6 ocx添加到dot net项目并使用setup部署dot net [英] How to add vb6 ocx to dot net project and and deploy dot net using setup

查看:89
本文介绍了如何将vb6 ocx添加到dot net项目并使用setup部署dot net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



i有一个vb6.0 OCX控件,我想添加我的dot net项目,并且还希望用dot net setup部署它。 br />


我在IDE的工具箱中添加了ocx。它在我的项目的obj文件夹中创建了两个dll。使用这两个dll,这在开发系统上运行良好。

但是当我在客户端的机器上运行并运行应用程序时,它会出现错误Class not registered。



请帮忙。 />


我尝试了什么:



i创建了一个安装项目并添加了全部需要带有exe的dll并且还添加了两个ocx dll(Interop。**** Lib和AxInterop。**** Lib)并为Interop设置Register property = vsdraCOM

。**** Lib dll 。

并将目标目录设置为应用程序目录。

就是这样。



请帮助..在哪里和什么我错过了。

hello,

i have a vb6.0 OCX control and i wants to add in my dot net project and also wants to deploy it with dot net setup.

I have added ocx in tool box in IDE. its created two dlls in obj folder of my project. Use this both dlls and this working fine on development system.
but when i install it at client's machine and run application its gives a error "Class not registered".

Please help.

What I have tried:

i have creates a setup project and added all required dlls with exe and also added both ocx dlls (Interop.****Lib and AxInterop.****Lib) and set Register property =vsdraCOM
for Interop.****Lib dll.
and set target directory as application directory.
thats it.

Please help.. where and what I missing.

推荐答案

应该注册OCX文件(写入注册表的COMID)...

通常它会是这样的 regsvr32your.ocx,但实际上你如何利用它取决于你如何创建安装程序......
OCX files should be registered (the COMID written into the registry)...
Normally it would be something like regsvr32 "your.ocx", but how actually you can utilize it is depends on how do you create your installer...


这篇关于如何将vb6 ocx添加到dot net项目并使用setup部署dot net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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