首页 > 其他 > 详细

网友写的解决uniGUI限制的方法

时间:2016-10-15 16:23:46      阅读:136      评论:0      收藏:0      [点我收藏+]

群友写的解决uniGUI试用版限制修改SessionTimeOut,思路很精巧,贴过来分享,感谢朋友的奉献。当然,如果真正用uniGUI实做项目,买份正版是正道!

var
   UniServerOption, newUniServerOption : TUniServerOptions;
   n : Integer;
begin
   UniServerOption := UniServerModule.Options;
   pAddr := @UniServerModule.Options;
   newUniServerOption := [soShowLicenseInfo, soAutoPlatformSwitch, soDisableBrowserCompatibilityMessage, soRestartSessionOnTimeout, soAllowSessionRecording];
   n := Byte((@newUniServerOption)^);
   PInteger(pAddr)^ := n;
   UniServerOption := UniServerModule.Options;
end;

对于在ide中修改无效的属性是因为代码中只有getxxx而没有了setxxx
可按上面的方法自行脑补

网友写的解决uniGUI限制的方法

原文:http://www.cnblogs.com/westsoft/p/5964449.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!