[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Registry settings

Posted on 1998-11-19
1
Medium Priority
?
179 Views
Last Modified: 2010-05-03
I have a form named 'preferences' which contains four text boxes. As soon as user inserts some data, the data should be added to registry settings.
I need help in following things...
1. Do i need to create a path in registry for these preferences?
2. How to pass information from form text boxes to registry preferences path?
3. In the same way, updation also?

please reply me immediately.
0
Comment
Question by:rgodavarthi
[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
1 Comment
 

Accepted Solution

by:
carty earned 210 total points
ID: 1445731
Before attempting to pass values to the registry you should be confindent with how the registry operates:  The registry is essentially a database that has an object model The following properties are available:

Root    Sets the active root key
Key      Sets the active sub-key
Autocreate   When true creates the active key if non is existent
ValueCount The count of the values found in a key
SubKeyCount  The count of the subkeys in the active key

Methods available:

Create   Creates a new key and makes it activer
Delete   Deletes a key and any subkeys
DeleteValue Deletes the name and value pair from a key
GetName returns the name
GetValue Returns the value
SetValue Sets the value of a name
Refresh reloads the cache data from the active key

For me to give you a full tutorial on the registry and its API would take up too much space.  If you donot have time to do further research consider the following API calls GetPrivateProfileString
and WritePrivateProfileString they are used to read and apply value to .ini files and are still in many cases faster than the registry option.

I hope that I have assists you.



David Carty
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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.
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…
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…
Suggested Courses

649 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