Program expiration
-
I want to make my program expire after 30 days. What's the best way to implement this? I just need a simple solution, one that will prevent normal users from bypassing the expiration. Thanks! Johnny Wood
1. get the current time 2. read a registry key that your program owns HKCU/Software/MyCompany/Whatever... 3. if that key doesn't exist, create it and write the current time there. this wil happen the first time your app runs. 4. if the key does exists, read the time stamp that was stored there and compare it to the current time. -c
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
/. #3848917 -
I want to make my program expire after 30 days. What's the best way to implement this? I just need a simple solution, one that will prevent normal users from bypassing the expiration. Thanks! Johnny Wood
save lastest date in register or a file, make sure ur user can't find it avoid to use 'current time', so if user changes time setting, the app still expired includeh10
-
I want to make my program expire after 30 days. What's the best way to implement this? I just need a simple solution, one that will prevent normal users from bypassing the expiration. Thanks! Johnny Wood
There is an article on this site regarding this: CExpire Peter O.