申请日期n时间,如系统日期n时间 [英] application for date n time that work like System date n time

查看:63
本文介绍了申请日期n时间,如系统日期n时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everybody,



我想在日期n时间创建1个应用程序,在系统关闭后自动增加日期n时间(如系统日期n时间)n再开始。



我的实际要求是这样的:



在我的申请中,我想要限制用户在返回日期进行输入。

但实际发生了什么,当用户更改系统日期时,可能会输入。



so我想我有2个创建1个应用程序,它的工作方式与系统日期时间相同,你可以在用户的​​PC上安装该应用程序,然后根据我的应用日期限制它们。



那么,请你帮帮我



提前感谢你

Hello Everybody,

I want to create 1 application for date n time which increment date n time automatic(like system date n time) after system shut down n on start again.

My actual requirement is like this :

In my application , i want to restrict user to do entry in back date.
but actual what happen ,when user change system date ,entry will b possible.

so i think i have 2 create 1 app which work like system date n time,n i install that app on user's PC n then restrict them according to my app date n time.

So,can u please help me out

Thanking you in advance

推荐答案

你不能阻止用户执行此操作
you can't prevent user from doing this


如果您的应用程序与系统日期时间相似,那么我怀疑您会将该程序公开给用户可能对系统datetim进行的任何更改e!



但是,这是我曾经用来限制使用时间演示程序的方法。



在程序安装时,我记录了某个地方(当时我使用了注册表)安装的日期和时间。通过将其与用户在安装时输入的许可证密钥中的加密日期进行比较,确认这是合理的。



该日期已加密看起来像是一个日期时间,并没有用程序名称标记...换句话说,我试图让它很难找到。



定期在我的应用程序的运行时中,如果存储的日期时间在系统日期时间之后,它将根据存储的日期时间和(在我的情况下)退出检查系统日期和时间...即,如果用户已经回溯了他们的系统时钟。如果测试通过,那么我将使用上次检查的日期时间更新存储的日期时间。我不只是在程序加载时执行此操作以防止用户加载程序并且然后回溯他们的系统时钟。



主人卸载时没有删除日期,这意味着我也可以查看他们是否正在尝试重新安装。



显然有办法解决这个问题(和大多数事情一样) )但如果​​你不做广告如何做检查并小心地隐藏主日期,它应该做你需要的。
If you have an application that works like the system datetime then I suspect you will expose that program to any changes the user might make to the system datetime!

However, here is a method that I once used to restrict use of a timebound demonstration program.

On program install I recorded somewhere (back then I used the registry) the date and time of installation. This was confirmed as being "reasonable" by comparing it to an encrypted date in the "licence" key that I had the user enter at installation.

That date was encrypted to look like anything but a datetime and was not "badged" with the program name ... in other words I tried to make it difficult to find.

At regular points in the runtime of my application it would check the system date and time against this stored datetime and (in my case) exit if the stored datetime was after the system datetime ... i.e. if the user had backdated their system clock. If the test passed then I would update the stored datetime with the datetime of the last check. I didn't just do this on program load to prevent the user from loading the program and then backdating their system clock.

The master date wasn't removed by the uninstall which meant I could also check to see if they were attempting to reinstall.

Obviously there are ways around this (as with most things) but if you don't advertise how you're doing the checks and hide the master date away carefully it should do what you need.


这篇关于申请日期n时间,如系统日期n时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆