我如何修复错误;无法加载控制面板;“未找到许可证”;在VB6程序中
我有一个VB6遗留程序需要更改。我无法从IDE运行该程序。当我激活IDE中的一个表单时,我会收到一个错误,它将我指向一个错误日志文件。日志文件中包含以下内容 “无法加载控制面板;找不到许可证” SSPanel是Sheridan 3D控件(THREED32.ocx)的一部分,并且选择了该组件我如何修复错误;无法加载控制面板;“未找到许可证”;在VB6程序中,vb6,Vb6,我有一个VB6遗留程序需要更改。我无法从IDE运行该程序。当我激活IDE中的一个表单时,我会收到一个错误,它将我指向一个错误日志文件。日志文件中包含以下内容 “无法加载控制面板;找不到许可证” SSPanel是Sheridan 3D控件(THREED32.ocx)的一部分,并且选择了该组件 如何修复错误?对我有效的解决方案是在安装光盘(common/tools/VB/controls)上执行文件VBCTRLS.REG。它注册了控件。我不再得到错误,我能够从IDE运行程序,只需要在一些遗留代码中处
如何修复错误?对我有效的解决方案是在安装光盘(common/tools/VB/controls)上执行文件VBCTRLS.REG。它注册了控件。我不再得到错误,我能够从IDE运行程序,只需要在一些遗留代码中处理这个问题。问题似乎在于vb6之前中断的控件。没有现成的安装盘,所以我做了一些挖掘,找到了一个可以从microsoft.com下载的可执行文件 Microsoft有一篇kb文章解决了这个问题: (存档副本) VBUSC.exe文件似乎已将其修复。
- 如果已在中注册,请注销所有threed32.ocx 多个地方
- 在sys32文件夹中注册threed32.ocx
- 运行 VBCTRLS.REG(有时在sys32中,有时在 常用/工具/VB/控件)
现在试试我确信它会起作用的遇到这个问题,尝试了所有答案都没有成功,我想我应该添加一条额外的信息来解决这个问题 问题似乎与Windows 7更新包有关。一位同事运行的操作系统版本有些过时,我们的VB6项目运行得很好,但我的新机器安装了最新的Win7,出现了这个问题 无论如何,解决办法是:
- 找到
(它通常位于regtlibv12.exe
中。例如C:\Windows\Microsoft.NET\Framework\[version]
,如果这是您安装的)C:\Windows\Microsoft.NET\Framework\v4.0.30319
- 以管理员身份运行命令提示符并导航到该文件的位置
- 为64位Windows执行
regtlibv12.exe C:\Windows\SysWOW64\msdatsrc.tlb
- 对32位Windows执行
regtlibv12.exe C:\Windows\System32\msdatsrc.tlb
[HKEY_CLASSES_ROOT\Licenses\E32E2733-1BC5-11d0-B8C3-00A0C90DCA10]
@="kmhfimlflmmfpffmsgfmhmimngtghmoflhsg"
我使用
cmd窗口(以管理员身份运行):
然后使用存储VB6的文件夹
(\Visual Basic 6\en_vb6_ent_cd1\Common\Tools\VB\controls)
我运行了vbctrls.reg
错误消失了,我的旧程序有三个面板现在加载并正常运行 Microsoft文章kb177799中有一种可能性“未找到此组件的许可证信息错误”(也是Q177799) 尽管原文已不存在,但档案和相关文本复制如下: 症状 当您尝试向窗体添加控件时,可能会显示以下消息 出现: 未找到此组件的许可证信息。你没有一个 在设计中使用此功能的适当许可证 环境。 原因 当安装控件仅用于运行时时(例如 由使用Visual Basic创建的应用程序安装),如果 基本开发环境安装在同一台计算机上 之后,现有控件的版本等于或高于 从CD中,该控件的许可证密钥不会更新 分辨率 如果所讨论的控件是下面列出的任何控件,请查找 然后双击Visual Basic CD-ROM上的文件Vbctrls.reg:
- AniBtn32.ocx
- 量规32.ocx
- 图32.ocx
- Grid32.ocx
- KeySta32.ocx
- MSOutl32.ocx
- Spin32.ocx
- 3d32.ocx
- Dbgrid.reg
- Mschart.reg
\REGSVR32.EXE/u\OCXFILE.OCX
C:\Devstudio\VB\REGSVR32.EXE/u C:\Winnt\System32\COMCTL32.OCX
另一种可能性是Microsoft文章Q195353
文件:VBUSC.EXE为已停止使用的控件
提供许可证,该控件已存档并保存。(\Visual Basic 6\en_vb6_ent_cd1\Common\Tools\VB\controls)
SUMMARY
=======
VBUSC.EXE is a file that installs the Design-Time Licenses for ActiveX controls
that shipped with earlier versions of Visual Basic, but are no longer supported
and have been discontinued with the current version.
MORE INFORMATION
================
The following file is available for download from the Microsoft Download
Center:
VBUSC.exe
(http://download.microsoft.com/download/VB60Pro/Install/2/Win98/En-US/VBUSC.exe)
Release Date: August 15, 2000
For additional information about how to download Microsoft Support files, click
the following article number to view the article in the Microsoft Knowledge
Base:
Q119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current
virus-detection software that was available on the date that the file was
posted. The file is stored on secure servers that prevent any unauthorized
changes to the file.
FileName Size
---------------------------------------------------------
VBUSC.EXE 88k
The following controls are no longer supported by Microsoft Visual Basic:
ActiveX Control Name Filename
------------------------------------------------
Desaware Animated Button Control ANIBTN32.OCX
Microhelp Gauge Control GAUGE32.OCX
Pinnacle-BPS Graph Control GRAPH32.EXE
Microsoft Grid Control GRID32.OCX
Microhelp Key State Control KEYSTA32.OCX
Microsoft Outline Control MSOUTL32.OCX
Outrider SpinButton Control SPIN32.OCX
Sheridan 3D Controls THREED32.OCX
The ActiveX controls listed above are no longer supported, but ship with the
Professional and Enterprise Editions of Microsoft Visual Basic for backward
compatibility when upgrading existing projects.
These controls do not ship with the Learning Edition of Microsoft Visual Basic.
For the Professional and Enterprise Editions, the controls are located on the
installation CDs at the following locations:
Microsoft Visual Basic Edition Location
----------------------------------------------------------------------
Professional 6.0 \Common\Tools\VB\Controls
Enterprise 6.0 \Common\Tools\VB\Controls
Visual Studio Professional 6.0 \Common\Tools\VB\Controls (CD2)
Visual Studio Enterprise 6.0 \Common\Tools\VB\Controls (CD3)
Each of these directories contain a README.TXT with instructions on how to
install the controls for design-time use.
NOTE: Using the Learning Edition to upgrade a project developed in an earlier
version of Microsoft Visual Basic might result in licensing problems for these
controls.
The VBUSC.EXE installs the design-time licenses for the controls listed above if
Visual Basic is detected on the computer.