Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Brian Walsh
  Where is Brian Walsh?
 Cork
 Ireland
 Brian Walsh
 To: Adel Kadi
  Where is Adel Kadi?
 Fairfax
 Virginia - United States
 Adel Kadi
 Tags
Subject: RE: Demo For Application
Thread ID: 773 Message ID: 881 # Views: 5 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Monday, June 18, 2001 6:33:04 AM         
   


Adel,

If you want something quick, then something like this (very rough!) pseudo code might do:

********************
IF NOT FILE license
&&Will only run the first time the application is run.
CREATE FILE License
Write Date + XX amount of days to a field, say license.expirydate
CREATE FILE License2
ELSE
IF FILE License AND NOT FILE License2
MESSAGEBOX("Demo Period Expired")
QUIT
ELSE
&&OK Let the app run, but check the date written to the license file
IF DATE() > license.expirydate
DELETE FILE License2
ENDIF
ENDIF
ENDIF

********************
This means that even if the client resets the date on his computer, the application will refuse to start.

The nice thing about this is that, if your client does purchase your software, then you can send them a "Licensing Executable" which should create the file "license2", and write an expiry date, say, 1/1/2037 to the license1 file.

Alternatively, you could put a sort of timebomb into a method that creates new records, so that only a certain amount of records can be created.

The amount of work that you put into the "demoizing" of your app should be proportional to the potential loss of revenue if the customer decides not to be honest.

Brian.



ENTIRE THREAD

Demo For Application Posted by Adel Kadi @ 6/13/2001 8:23:21 PM
RE: Demo For Application Posted by Vladimir Trukhin @ 6/13/2001 9:33:44 PM
RE: Demo For Application Posted by Adel Kadi @ 6/13/2001 10:14:39 PM
RE: Demo For Application Posted by Brian Walsh @ 6/18/2001 6:33:04 AM
RE: Demo For Application Posted by Adel Kadi @ 6/18/2001 6:45:41 PM