向 Progress-4GL Windows 应用程序添加标签页控件会在使用 ActiveX 时产生许可证问题 [英] Adding a tabpage control to a Progress-4GL Windows application yields a license problem while working with ActiveX
问题描述
我正在创建一个基于窗口的 OpenEdge Progress-4GL 应用程序,我喜欢在其中添加一个标签页.为了做到这一点(因为调色板中没有标签页控件),我尝试添加 OCX (ActiveX) 控件Microsoft TabStrip Control, version 5.0 (SP2)".但是,当我尝试这样做时,我收到以下错误消息:
I'm creating an OpenEdge Progress-4GL application, based on a window, where I like to add a tabpage. In order to do this (as there is no tab page control in the palette), I've tried to add the OCX (ActiveX) control "Microsoft TabStrip Control, version 5.0 (SP2)". However, when I try this I get the following error message:
Messagebox title: AB
Messagebox content:
CtrlFrame
Unable to create control.
Het licentie bestand voor genoemde ActiveX control is niet gevonden.
最后一句是荷兰语,意译为:未找到提及 ActiveX 控件的许可文件."
The last sentence is in Dutch, freely translated it means: "The license file for mention ActiveX control is not found."
我应该怎么做才能将提到的 ActiveX 控件添加到我的窗口?
或者,甚至更好:是否有标准的标签页"?可用于创建 Progress-4GL 基本 Windows 应用程序的控件?
What should I do in order to be able to add the mentioned ActiveX control to my window?
Or, even better: is there a standard "tabpage" control I can use for creating Progress-4GL basic Windows-based applications?
在进一步调查后进行编辑
与此同时,我从目录 C:\Windows\SysWOW64\
启动了命令 regsvr32 comctl32.ocx
,结果如下:
In the meantime from the directory C:\Windows\SysWOW64\
I have launched the command regsvr32 comctl32.ocx
with following results:
- 以普通用户身份启动:命令失败,错误号为0x8002801c".这似乎是由于用户权限所致.
- 以管理员身份启动:命令成功,但似乎仍然无法使用上述控件.
安装 Visual Studio 后编辑
即使安装了 Visual Studio 2019 版本 16.8.3,问题似乎仍未解决.安装了以下组件:
The problem seems still not to be solved, even after having installed Visual Studio 2019, version 16.8.3. The following components are installed:
Workloads :
Web & Cloud (4)
ASP.Net and web development
Python development
Desktop & Mobile (5)
.NET desktop development
Desktop development with C++
Universal Windows Platform development
Other Toolsets (6)
.Net Core cross-platform development
Individual components : Development activities (filtered on "Basic")
C# and Visual Basic
显然所需的许可证不在安装中.我需要添加什么?
Apparently the required license is not in the installation. What do I need to add?
推荐答案
该错误消息表明您没有该 Active X 控件的开发人员许可证.某些(旧的)Visual Studio 安装提供该许可.
The error message says that you don't have a developer license for that Active X Control. Some (old) Visual Studio installs provide that license.
您的选择是:
a) 通过仍然支持 Active X 的 Visual Studio/Visual Basic 许可证获得该许可证,例如 VB6,请注意,Microsoft 可能在 15 年前从 Visual Studio 中删除了该许可证.
a) obtain that license through a Visual Studio/Visual Basic license that still has Active X Support, like VB6, note, that Microsoft dropped that from Visual Studio probably 15 years ago.
b) 找到不同的选项卡文件夹 Active X Control(供应商仍支持).Codejock 组件在 AVM 中运行良好:https://codejock.com/products/controls/?2yn6s14z=p1z
b) find a different tab folder Active X Control (that is still supported by a vendor). The Codejock components are known to work well in the AVM: https://codejock.com/products/controls/?2yn6s14z=p1z
c) 从 Progress Software 进入 ADM2 框架.这提供了一个纯粹用 ABL 编写的选项卡文件夹(不漂亮).但是在 2021 年学习 ADM2 似乎真的很痛苦.它不再由 Progress Software 维护
c) get into ADM2 framework from Progress Software. That provides a tab folder purely written in ABL (not pretty). But learning ADM2 in 2021 seems really painful. It's no longer a maintained by Progress Software
d) 切换到 Progress Developer Studio 并开始使用 GUI for .NET (https://docs.progress.com/de-DE/bundle/openedge-gui-for-net-primer-117/页/面向对象的编程-in-ABL.html).您可以基于(任何).NET WinForms Control 基于 GUI for .NET 构建 UI.但是,OpenEdge Studio 没有为此提供图形设计器.
d) Switch to Progress Developer Studio and start using GUI for .NET (https://docs.progress.com/de-DE/bundle/openedge-gui-for-net-primer-117/page/Object-oriented-Programming-in-ABL.html). You can build UI's based on (any) .NET WinForms Control based on GUI for .NET. However, the OpenEdge Studio does not provide a graphical designer for that.
e) 基于图像和按钮构建您自己的纯 ABL 选项卡文件夹.
e) Build your own pure ABL tab folder based on images and buttons.
这篇关于向 Progress-4GL Windows 应用程序添加标签页控件会在使用 ActiveX 时产生许可证问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!