Solved

code for writing software Evaluation

Posted on 2004-04-27
6
138 Views
Last Modified: 2010-05-02
I need to provide restirction on my vb software package which would give exprity alert after 30 days(from the date of installation).I need to restrict the access of software even if the user changes the system date.
0
Comment
Question by:samidha
  • 2
6 Comments
 
LVL 11

Accepted Solution

by:
jmwheeler earned 63 total points
ID: 10927859
The best way that I can think of is to use the registry.  Have your program check for 2 values in the registry every time it starts.  One value will be the date the program is first run the other will be any value you choose to signify the program is expired.  If Value1(Date) is not present then the program needs to put todays date into the registry entry (this should only happen the first time the program is run).  Then if Value2(your choice) is empty and it is not 30 days from Value1 then start the program and leave Value2 empty.  If Value2 is empty and it is after 30 days from Value1 then set Value2 to some value and exit the program.  If Value2 is not empty then exit the program.  

The example above will allow you to set a value in the registry to render the program expired and that value will not be changed regardless of whether the user changes the date back or not.  It will not guard against the user changing the date back before the program expires though.  I don't know how you would accomplish that.  You could pull the date off of a website but that would mean the user of the program would have to have internet access.
0
 
LVL 53

Assisted Solution

by:Dhaest
Dhaest earned 62 total points
ID: 10927946
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 11256781
My recommandation: split points between JmWheeler & Dhaest
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question