无法在 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.