我正在尝试将我的所有可执行文件从 Windows Server 2003 部署到 2012 R2。当我运行其中一个 exe(VB6)时,它会引发错误:
ERROR: 339 - Component 'MSCOMCTL.OCX' or one of its dependencies not correctly registered: a file is missing or invalid
我知道如何在 Windows Server 中注册 MSCOMCTL.OCX。但是我继续在 Windows Server 2003 中搜索这个 OCX,这个 exe 已经运行了 5 年以上,令我惊讶的是那里没有 MSCOMCTL.OCX。
那么,在没有 MSCOMCTL.OCX 的情况下,exe 在 Windows Server 2003 上如何正常运行,但在 Windows Server 2012 上却抛出错误?