Click here to Skip to main content
15,921,660 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
hi friends,

I'm making an application in which i want some feature of that application to get disable after some time lets say 15 days.
i want you to give suggestions and share your experience regarding same, so that i will not be left with any loop hole in that application.

foreg: if I'll use comparison between the day the application is installed with current day then when the count will reach 15 above i can disable
Here i can manipulate system date time moreover i can reinstall that application.
Other way is that I'll store one count variable which will count the days, but here also there is constraint that application should be used everyday(Here i can have one solution that application can be added to start-up But i don't want to do this)

So friends I need some of your experience to be shared here which can leave no stone unturned when it comes to loop hole or it should be soothing enough!!!

Thanks in Advance.
Posted
Comments
db7uk 27-May-12 15:30pm    
This really depends on the application architecture? Is is ASP.NET, WPF?

1 solution

I suggest that you calculate 15 days from the beginning day, and save the 15th day in the registery, and make your application always on start-up parse that day from the registery, and check for the current day, if it's the same day or not, and weather the day in registery is older than the current one.

Hope this would help!
Thank you!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900