?
Solved

code for writing software Evaluation

Posted on 2004-04-27
6
Medium Priority
?
141 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

770 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