Failed To Activate Control 'vb.usercontrol' In VB6

自古美人都是妖i 提交于 2019-12-13 02:38:31

问题


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

But in some PCs it does give me the error:

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

I register OCX files which are needed by my program.

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.


回答1:


I've found the problem and the solution :

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.

so there was a mismatch between two files.

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



来源:https://stackoverflow.com/questions/32453297/failed-to-activate-control-vb-usercontrol-in-vb6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!