You could give it a timer to time out after 10 minutes or so, so they can get the feel, then iritate them so they will buy the full version ;-)
(I would stick with the EXE method mentioned above)
Is this for dos PCs or Windows?
If it is for windows, there are tricks you can do to use the registry for this type of stuff...
Or...
Generate a code from the system Date & Time...
Display the Code to them...
Save an encrypted version of the code with some extra random bytes to a binary file...
Have them send the code to you where you then run the code through a program to generate a second (Activation) code...
Send the Activation code back to them...
The program should use the same method to generate the second code, and activate the program with a Counter...
Store the counter in the file along with the activation code...
Each time the program starts, it checks for this file, checks the codes and decrements the counter and saves it back to the file...
Also if the Activation code matches the register code, have it generate new codes and save them back to the file too, this way it makes it harder to crack...
If the file does not exist, it will not run.
If the file has been tampered with, it will not run.
If you want to use a 30 day trial instead...
You also use the modify date of the created file as a reference to the system clock, so they can't keep setting back the system clock... the system time must be > than the modify date... you might want to store this, encrypted in the file also...
Hope this gives you a few ideas ;-)
Good luck,
-Josh
Have Fun, Be Young... Code BASIC
-Josh
PROGRAMMER:
Red-eyed, mumbling mammal capable of conversing with inanimate objects.