Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

code for writing software Evaluation

Posted on 2004-04-27
6
Medium Priority
?
144 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
3 Comments
 
LVL 11

Accepted Solution

by:
jmwheeler earned 252 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 248 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses
Course of the Month20 days, 17 hours left to enroll

810 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