Number of runs would be easier.
It could be done by write a value to the registry, reading it, and incrementing it.
When the program loads:
First, check to see if there is a value in the registry under you're program name.
Either read it, if it is there, or use zero
Add one to the value
Save it to the registry.
If the value is over the number of times you want it to load - Quit!
The only problem would be if you're students now about how to use the registry.
Hope it works
Main Topics
Browse All Topics





by: emoreauPosted on 2003-05-31 at 08:27:15ID: 8620274
see http://www.exeshield.com/