English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i want to make my programme work for 3dayes only in visual basic?

2006-11-23 17:30:27 · 3 answers · asked by ebrahim e 1 in Computers & Internet Programming & Design

3 answers

Pick somewhere out of the way eg: c:\windows and then plonk a tiny little file with a non-obiouvs title - like "usbdrv2.dll" containing anything you want (make it credible).

Now if you simply want 72 hours after first run, then have the program look at the file whenever it loads, if not there already place file in the directory with the date and time of now.

On subsequent loadings, check the file against system clock, if it is time up, then do not work.

More complex ways involve writing to the registry but this works fairly well. If you want to be able to check they have not just changed the system clock to get around it, you have to be a little more clever - checking for incremements etc / same time.date as last time.

Easy to do - and you have a choice as to whether a re-install will make it all work again (by including the file in the remove script) or making it a "one-time run only" job - leaves file behind.

You can of course have override codes - date extension codes and all sorts if you wish too.

2006-11-23 17:57:56 · answer #1 · answered by Mark T 6 · 0 0

Place a small piece of code which keeps on checking when the user installed your application with the time now. If the difference is 3 days then disable all contols of your software. In order to check when the application was installed, write a txt file in /windows/system giving a name like setvb.txt or anything in which the date is written when the apllication first runs. (you can also write into teh rgistry by creating new keys if you know how to do it). Then, on every run of the application, it check todays date with the date written in the txt file. If the difference is greater than 3 days, then, disable all controls of the application.
Since you are in Vb look for nice codes from this site
"http://www.planet-source-code.com/vb/default.asp?lngWId=1"

2006-11-27 02:06:10 · answer #2 · answered by Sunny 4 · 0 0

so whats the question?

2006-11-23 17:45:22 · answer #3 · answered by D 4 · 0 0

fedest.com, questions and answers