界面开发套包ToolKit Pro最新版:在您的应用程序中嵌入许可证信息

在某些情况下,您可能需要使用License属性在控件中包括LIC文件的内容。您不包括实际的LIC文件。例如,如果您使用C#开发,则将需要包括许可证信息,如果要为Internet Explorer开发ActiveX控件,则将需要包含许可证信息,或者如果要创建使用 included的ActiveX控件,则需要包含许可证信息。

Xtreme Toolkit Pro是MFC开发中最全面界面控件套包,它提供了Windows开发所需要的11种主流的Visual C++ MFC控件,包括Command Bars、Controls、Chart Pro、Calendar、Docking Pane、Property Grid、Report Control、Shortcut Bar、Syntax Edit、Skin Framework 和Task Panel。如果对产品感兴趣的话欢迎下载Xtreme Toolkit Pro最新试用版! 点击获取更多免费Xtreme Toolkit Pro教程、视频、示例!

【同类产品推荐】

  • BCGControlBar for .NET | 下载试用 :包含有大量高度自定义、完全可设计的.NET界面控件,用户可以使用这些来创建精致美观的图形用户界面。

在您的应用程序中嵌入许可证信息

在某些情况下,您可能需要使用License属性在控件中包括LIC文件的内容。您不包括实际的LIC文件。例如,如果您使用C#开发,则将需要包括许可证信息,如果要为Internet Explorer开发ActiveX控件,则将需要包含许可证信息,或者如果要创建使用 included的ActiveX控件,则需要包含许可证信息。您需要包含Codejock组件的许可证信息。在其他情况下也可能需要这样做。

每个控件的License属性位于GlobalSettings类中。下面的代码说明了如何对使用的每个控件使用许可属性。

您将需要提供正确的产品ID验证代码。可以在LIC文件中找到此信息 。在LIC文件位于同一位置的OCX文件。默认情况下,用于Suite Pro安装的OCXLIC文件的位置是“ .. Program Files Codejock Software ActiveX Suite Pro ActiveX 2006 Q2 bin”。在创建任何控件之前,例如,在Visual Basic 6.0主窗体的Form_Initialize事件中,都应包含此代码。为简单起见,下面的代码演示了如何仅嵌入CommandBar的许可证信息,您将需要对所使用的每个控件进行此操作。

Visual Basic 6.0

Private Sub Form_Initialize()    CommandBarsGlobalSettings.License = "CommandBars Control Copyright (c) " & _    "2003-2006 Codejock Software" & vbCrLf & "PRODUCT-ID: " & _    "Codejock.CommandBars.ActiveX.v10.20" & vbCrLf & _    "VALIDATE-CODE: XXX-XXX-XXX-XXX"End Sub

C#

public frmMain(){    XtremeCommandBars.CommandBarsGlobalSettingsClass CommandBarsSettings =        new XtremeCommandBars.CommandBarsGlobalSettingsClass();    CommandBarsSettings.License =        "CommandBars Control Copyright (c) 2004-2006 " +        "Codejock Softwarern" +        "PRODUCT-ID: Codejock.CommandBars.ActiveX.v10.20rn" +        "VALIDATE-CODE: XXX-XXX-XXX-XXX";    //    // Required for Windows Form Designer support    //    InitializeComponent();}

.NET

Public Sub New()    MyBase.New()    Dim CommandBarsSettings As _        XtremeCommandBars.CommandBarsGlobalSettingsClass = _        New XtremeCommandBars.CommandBarsGlobalSettingsClass    CommandBarsSettings.License = "CommandBars Control Copyright (c) " + _    "2003-2006 Codejock Software" + ControlChars.CrLf + "PRODUCT-ID: " + _    "Codejock.CommandBars.ActiveX.v10.20" + ControlChars.CrLf + _    "VALIDATE-CODE: XXX-XXX-XXX-XXX"    'This call is required by the Windows Form Designer.    InitializeComponent()    'Add any initialization after the InitializeComponent() callEnd Sub

今天的内容就是这些了,下载最新版Xtreme ToolKit Pro并在下方评论区分享您对该产品的想法。您的反馈意见可帮助我们在以后的更新中找到正确的方向,作为Codejock的正版代理商现Xtreme ToolKit Pro正版授权最高立减2000元! Xtreme Command Bars在线订购最低仅需1105元!

标签:

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2020年8月27日
下一篇 2020年8月27日

相关推荐

发表回复

登录后才能评论