Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Registry Entries

Status
Not open for further replies.

mans

Programmer
Mar 18, 2000
136
AU
Hello,

I am using VB6 and I am familiar with the SaveSetting and GetSetting commands which write to "VB and VBA Program Settings" in HKEY_Local_Machine in the registry. Can somebody please let me know what code I should use to save settings elsewhere in the registry (in a number of places, does not have to be specific locations) and how I can set up a counter (so that each time my application is opened, it adds 1) in an entry in the registry so that when it's numerical value (coded in VB) is exceeded, the VB application will not run. This latter is used to limit the number of times that a single demonstration copy can be opened.

Thank You
 
This is a true Frequently Asked Question. Click here faq222-92 to see the Frequent Answer Redirection Thread (technical knowledge and useful comments provided by Mike Lacey).

Good luck and don't hurt your customers' computers.

BTW: Determining the extent of a software "evaluation period" is best accomplished outside the registry. The registry is way too easy to hack and force an indefinate extention of the trial period.
VCA.gif

Alt255@Vorpalcom.Intranets.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top