本人编写了一个EXE文件 
报error 372 
Failed to load control 'topBackGround' from .  Your version of  may be outdated.  Make sure you are using the version of the control that was provided with your application.
其中topBackGrounnd 为我编写的一个自定义控件
在其他系统中 可以正常运行,唯独BOSS的机器运行会有问题。
BOSS的操作系统如下
Microsoft Windows XP
Professional
版本2002 
Service Pack 3 
我装了虚拟机 同样不报错。

解决方案 »

  1.   

    可能是你BOSS的机器中已有topBackGround控件,而且比你现在的要旧,试着把你的控件复制过去再重新注册
      

  2.   

    这个是我自定义的控件 包含在EXE里的。BOSS机器不会存在的。 
      

  3.   

    你的控件里面有什么依赖文件?你怎么放到你的Boss的机器上的,是把你自己的东西做成安装包还是就直接copy过去的?如果是后者说明你的Exe里面的依赖文件和boss机器上的某些文件版本冲突正确的做法是把你的东西通过打包工具安装到目标机器上
      

  4.   

    那个控件是我自己写的。名称也是自定的。不太可能有冲突的。
    并没有安装包。是直接生成的EXE文件。也没有依赖资源文件。所有的图片都是在程序里的。
    挑用的WINDOWS API也是公用的API 
      

  5.   

    典型的杀毒软件问题,未许可的 ocx 被禁用,载入失败。
      

  6.   


    CauseThis can occur when the user running the application is logged on under a different user account than the user account who installed the application, and the installation package installed the application on a per user basis.When an application is installed for a specific user, the COM components referenced in the application are registered in the HKEY_CURRENT_USER hive in the Windows registry. When an application is installed for All Users, the registry entries are made to the HKEY_LOCAL_MACHINE hive in the Windows registry, and all users should be able to read these entries by default.ResolutionModify the installation program to install the application for All Users.这是微软的文档,除了杀软的限制访问,还有可能是安装软件的用户和使用软件的用户不一致。
      

  7.   

    你的exe就有对这个控件的依赖阿,你得把这个控件也拷到目标机器,然后注册
      

  8.   

    这个控件已经在 EXE 里了
      

  9.   

    有可能是工程引用的某些库或组件版本不对或不存在.不要完全相信VB6的出错提示,我遇到过自定义API调用时DLL初始化出错,结果报的是53,文件不存在...你把你VBP文件内容发上来看看
      

  10.   

    到你BOSS的机器上装VB,拷贝源码,然后编译生成EXE即可