无法在 VB6 中激活控件“vb.usercontrol" [英] Failed To Activate Control 'vb.usercontrol' In VB6

查看:76
本文介绍了无法在 VB6 中激活控件“vb.usercontrol"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用 VB6 编写的程序,可以在许多不同 Windows 版本的 PC 上运行,没有任何问题.

I have a program which is written in VB6 and runs in many PCs with different windows versions, without any problem.

但在某些 PC 中它确实给了我错误:

But in some PCs it does give me the error:

failed to activate control 'vb.usercontrol'. this control may be incompatible with your application

我注册了我的程序需要的 OCX 文件.

I register OCX files which are needed by my program.

我不知道这是否与 32 位64 位 操作系统有关.

I don't know if it's related to being a 32bit or 64bit OS or not.

我很高兴知道您的答案.谢谢.

I'll be happy to know your answers. Thanks.

推荐答案

我找到了问题和解决方案:

I've found the problem and the solution :

有一个ocx文件有两个版本,我的程序是用新版本编译的,有些电脑是旧版本.

There is an ocx file which has two version, and my program has been built with the new version and some PCs had the old version.

所以两个文件不匹配.

现在,我用新的 ocx 替换了旧的 ocx,问题解决了.

Now, I replaced the old ocx with the new one and the problem solved.

这篇关于无法在 VB6 中激活控件“vb.usercontrol"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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