中国程序员联盟 正在重新改版中ing 不便之处还请见谅 改版后将内容涉及java delphi .net php
 
  首页 | 数据库开发 | 网络通讯 | 多线程 | 多媒体开发 | 图像处理 | 程序人生 | 系统函数 | 控件开发 | Web服务
 
  当前位置:笨鱼delphi技术网>控件开发>控件使用>文章内容

delphi 通过可视化组件类库监视License

来源:国外 关于:Erwin Molendijk 发布时间:2007-07-21   [收藏] [推荐]
The SysUtils.pas unit contains some very interesting routines that are used by the VCL components to check if the correct version of Delphi is beeing used to compile the code (e.g. C/S components won't run if compiled with the Pro compiler).
 
Here are the functions:
 
function GDAL: LongWord;
 
Get Delphi Access License. Retreives the access licences resource. It checks if it is valid, if not an exception with the message 'Application is not licensed to use this feature' is raised.
The returned value is the decrypted first Access Licence (AL1).
 
procedure RCS;
 
Perform a check to see there is a Delphi Client Server licence. An exception is raised if the license is not valid.
 
procedure RPR;
 
Perform a check to see there is a Delphi Pro licence. An exception is raised if the license is not valid.
 
Other non exposed functions are:
 
function AL1(const P): LongWord;
function AL2(const P): LongWord;
 
These two functions return the decrypted value of the license value specified by P.
 
procedure ALV;
 
Raises an Access Licence Violation exception.
 
function ALR: Pointer;
 
Access License Resource loader. Returns a pointer to the loaded access license. An exception is raised if the resource is not found.

[浏览: 次]   
上一篇:delphi 组件用户自定义设计期工具   下一篇:delphi 如何将D5组件升到D6
[收藏] [推荐] [返回顶部] [打印本页] [关闭窗口]  
    评论加载中…
google adsense热点文章
·delphi treeview 使用
·delphi delphi下对象类别检查
·delphi 组件序列化
·delphi 如何在DBGRID里添加行序号
·delphi 组件用户自定义设计期工具
·delphi 显示GRID单Cell框的Hint
·delphi 如何保存属性到运行期使用(上)
·delphi 组件序列化
·delphi 如何将系统所有菜单列到树上Tre
·delphi 如何保存属性到运行期使用(下)
·delphi 如何将属性在设计期保存到DFM文
·delphi 如何保存Blob类型字段到数据库
     delphi技术网 | firefox 下载 | Avant Browser下载 | dedecms 技术网 | drupal 爱好者 | php 技术网
  Copyright@www.delphichm.com,2006-2009.All Rights Reserved.
 
程序员联盟 | delphi Java .net|QQ:707102932