MT4授权指标脚本或EA文件使用时间期限的简易函数
 老周
|
2353 人阅读
|
1 人评论
|
2017-03-16
	
老周
|
2353 人阅读
|
1 人评论
|
2017-03-16 
 
 
 
 
| 
 
 
| 该函数可以授权MT4指标脚本或EA文件使用时间期限.凡是无DLL加密授权的试用版都可以采用。 
 
 复制代码int gi_172 = 0;
 int g_time_188 = 0;
复制代码int start() {
 datetime lt_188 = D'12.11.2015';//到期日期格式
 int datetime_192 = TimeCurrent();
 if (datetime_192 <= lt_188) {
 试用期();
 return (0);
 }
 Comment("指标名称",
 "\n", "www.eazhijia.com");
 //往下该写啥就写啥
 return (0);
 }
复制代码void 试用期() {
 if (gi_172 == FALSE) {
 PlaySound("alert.wav");
 Alert("www.eazhijia.com");
 Alert(" 已过试用期,请联系作者。");
 gi_172 = TRUE;
 return;
 }
 Comment("指标名称",
 "\n已过试用期,请联系作者。",
 "\nwww.eazhijia.com");
 }
 
 | 
 | 
|  | 
|
|  | 
|  |