Solved

code for writing software Evaluation

Posted on 2004-04-27
6
136 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

929 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now