Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Boudewijn Lutgerink
  Where is Boudewijn Lutgerink?
 Hoonaardstraat, Driel
 Netherlands
 Boudewijn Lutgerink
 To: surinder singh
  Where is surinder singh?
 mumbai
 India
 surinder singh
 Tags
Subject: RE: Creating DEMO application
Thread ID: 182442 Message ID: 183492 # Views: 43 # Ratings: 1
Version: Visual FoxPro 9 Category: Projects and Design
Date: Monday, July 14, 2008 9:51:24 AM         
   


> There may be number of ways to do this.
> one is this:
> 1. Create a table and include that table in your project.
> 2. When your project run check for expiry date if there is no record in the table then add one record with expiry date e.g. insert into tblName values(date() +15)
>
I am afraid that this will not work. An included table is by definition read-only.
You cannot write to that, so you need to exclude it and shipp it separately with your app and this makes it very hacker-prone.

What I would do is as follows.
The client installs the app on the machine and at first startup the app sends some info to a server (YOUR server). This data can be things like companyname, phone, local IP address of the machine (look here for some code to get that working) and, of course the date the app was first started.

The name, address, phone# etc can be extracted from a simple form that needs this info, if not provided the app simply won't start.
It is also very handy for your marketing efforts, the users provide their own data.

Then set the expiry date in that same table for that install.
One other thing to do is set a LastDateUsed (DateTime)
One other field, of course, is to provide data on whether or not the app is registered (full version) or not.

Every time the user starts the appplication it will first retrieve data from the web whether or not the app is a demoversion and if the demo is expired or not.
It will send also the aforementioned data (name, IP etc) and the machine date.
In case the machine date is set back to an earlier date (than the one stored in the record for that machine on your server, LastDateUsed) this would mean the date is tampered with, so the user tries to cheat on you.
Simple as ever, the expiry date is then set as to immediate. So the user cannot test it any longer.

If no Internet connection is available then the user will be warned that no updates will be available, that the app will run but that the user really needs to try and make an Inet connection asap.
Some small info is kept, encrypted, in a file basically saying that the first time the app was started no data was send.
Next time, the user starts the app, and again, due to the fact that the first time the data could not be send, the app asks again for the data.
Again, no connection. Now the user MUST make a connection or the app refuses to start.

This is just a basic outline and needs to be fine tuned.

Boudewijn LutgeĀ®ink
http://www.vfpdevelopers-online.com
The truth will set you free, Ken knew the truth!
Violence ends where respect begins...

COMPLETE THREAD

Creating DEMO application Posted by anal Roy Chowdhury @ 7/9/2008 7:58:00 AM
RE: Creating DEMO application Posted by surinder singh @ 7/9/2008 11:37:17 AM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/9/2008 11:52:57 AM
RE: Creating DEMO application Posted by Jun Tangunan @ 7/9/2008 12:03:13 PM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/9/2008 12:08:34 PM
RE: Creating DEMO application Posted by Jun Tangunan @ 7/9/2008 12:42:04 PM
RE: Creating DEMO application Posted by surinder singh @ 7/9/2008 12:51:44 PM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/10/2008 6:52:16 AM
RE: Creating DEMO application Posted by surinder singh @ 7/10/2008 7:12:09 AM
RE: Creating DEMO application Posted by Boudewijn Lutgerink @ 7/14/2008 9:58:06 AM
RE: Creating DEMO application Posted by Boudewijn Lutgerink @ 7/14/2008 9:51:24 AM
RE: Creating DEMO application Posted by Garth Groft @ 7/9/2008 8:00:44 PM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/10/2008 6:58:11 AM
RE: Creating DEMO application Posted by Eric den Doop @ 7/11/2008 12:12:59 AM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/11/2008 11:03:23 AM
RE: Creating DEMO application Posted by Bernard Bout @ 7/15/2008 7:46:04 AM
RE: Creating DEMO application Posted by Boudewijn Lutgerink @ 7/15/2008 3:19:00 PM
RE: Creating DEMO application Posted by Bernard Bout @ 7/16/2008 8:03:56 AM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/16/2008 8:48:11 AM
RE: Creating DEMO application Posted by Jun Tangunan @ 7/16/2008 9:55:57 AM
RE: Creating DEMO application Posted by anal Roy Chowdhury @ 7/16/2008 10:13:52 AM
RE: Creating DEMO application Posted by Bernard Bout @ 7/17/2008 6:20:45 AM
RE: Creating DEMO application Posted by Boudewijn Lutgerink @ 7/17/2008 4:12:34 PM
RE: Creating DEMO application Posted by Boudewijn Lutgerink @ 7/17/2008 4:14:27 PM