Click to See Complete Forum and Search --> : trial version


May 25th, 1999, 02:24 PM
Does anyone know the mechanism of how a trial version works? In other words, How do you write your code in order for your program to refuse being launched after say 30 days?

By the way, I know some developer write date information in the registry, but it is not perfect. Any other way?

Thanks.

chiuyan
May 25th, 1999, 04:02 PM
The easiest way to do it, is to write a date somewhere in the registry (a hidden system key) the first time your program is run. Each time your program runs after that, you check that date, if it is past your 30 days, then exit your program.

You could also base it on number of times the program has been run, this would keep people from changing there clock to get longer use of your program.

--michael