Solved

local and network registry - saving user settings?

Posted on 1998-04-08
4
157 Views
Last Modified: 2010-04-06
Previously we had an ini file which told us to read the main ini on the network or on the users local machine, this way, ruiinung the app from a network, the users could either save individual settings or have the same ones. How can I duplicate this functionality with the registry. I could have a key in the network resgitry. But how can I read the users registry on their machine as opposed to the networks? A user logs onto our app with a unique userid, perhaps I should store under that userid (not a computer useris just for the app)  in the network registry? All thoughts/solutions would be appreciated. Thanks, Tom.
0
Comment
Question by:tomcorcoran
[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
  • 2
4 Comments
 
LVL 1

Accepted Solution

by:
bcrotaz earned 100 total points
ID: 1361345
Use the RegistryConnect method of TRegistry to connect to either the local machine or the remote machine.

Step 1 : Connect to local registry (Create an instance of TRegistry, and it does this by default)
Step 2 : Look at the boolean 'network' key
Step 3 : Connect (with RegistryConnect) to the network machine if the network key is true
Step 4 : Do all registry operations as normal, assuming the key structure is the same on the local and network registries.


Tada!

Bryan
0
 

Author Comment

by:tomcorcoran
ID: 1361346
Thanks for the answer. When I do a RegistryConnect witht eh server name (//server/sys) it reurns false. Any ideas why?
0
 
LVL 1

Expert Comment

by:bcrotaz
ID: 1361347
Don't know.  Sorry.
0
 

Author Comment

by:tomcorcoran
ID: 1361348
This system kind of sucks - I wanted to grade your answer but still leave it opne so others could help the problem. Now it's locked - that sucks.
0

Featured Post

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
Delphi Spellcheck in Webbrowser 1 77
Intraweb download file link ? 1 184
LAN or WAN ? 11 121
Delphi Firemonkey: if the Sms contain special characters it won't send it 3 84
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

751 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