Re: Setting Trial Periods
From: Oley (what-no_at_spam.com)
Date: 10/05/04
- Next message: Jim Huff: "Roaming profile does not update"
- Previous message: paristotle: "printer sharing xp SP2 and 2K"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 05 Oct 2004 13:46:28 GMT
On Sun, 16 May 2004 22:38:21 +0100, "Aardvark"
<djurmann(at)hotmail.com> wrote:
>I was wondering if I design a database for example is it possible to make so
>that it disables after a trial period unless a key code is used?
>
>If so how?
>
>Many thanks,
>
> Danny
>
Not sure if your familiar with programing but my normal way for this
would be:
Create a "register" application buton with code, when correct key
entered store in the registry (encrypted i guess would be best)
Now..
Put some code that runs every time your application starts.
When application starts, get it to check the registry key that the
code should be stored at and make sure its valid, if its there great
then just run, if not then...
Run another piece of code, this code checks for a registry key that
your application has stored the "first run" date at....
If this key does not exist... create it and store todays date....
Coninue to run.... OR
If key does exists, then if Today - Date stored in registry is greater
than "Trial Period in days" then STOP
Else, if Key does exist, then if Today - Date stored in registry is
less than than "Trial Period in days" Display Nag Screen and then
continue to run...
Easy enough, not exactly massively secure for anyone who wants top
nosey around, but I guess your not looking for FortKnox style
security.
BTW, best to store in registry, if you stored in a database table then
people could just export the data day before trial ended, delete your
DB, re-install it and then re import the data. If the key is retained
in the registry then unless they are very thorough it will be more
hassle for them to work around.
- Next message: Jim Huff: "Roaming profile does not update"
- Previous message: paristotle: "printer sharing xp SP2 and 2K"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|