It's the place where applications save different settings. For example when you set the homepage of IE to a specific site it stores it in the registry and when needed it retrieves it.
The registry is a place to save short clippings of information. It takes the place of having ini files. If you have stuff, like registration information that you want to save, you can use the registry. If you want to save the size of the window for your app, you can save that in the registry. You can save default colors for you app. The registry pretty much lets you save anything you need to save for your app. There are a few basic statements built into VB. I think it's only in VB5 and VB6 but I'm not sure. The SaveSetting and the GetSetting statements allow you to save settings.
I think the registry is the way to go, mostly because I haven't figured out the ini files. The registry is more proffessional, because it doesn't allow the causal user to tamper with the settings.
The registry stores pretty much everything about the system. All your registered fonts, ActiveX controls, COM objects, Outlook Express email addresses, the lot.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You". -- Linus Torvalds
I'm still a bit confused on how to read and write to the registry. Ive looked over the API's and some examples but I still couldnt understand how to modify it to my needs, giving it the information on weather the user has registered they're program or not.
All I need is to write a value to a specific key when the user first runs the program (deeming the program as unregistered) and then when the user does register a different value will be set on that key so the next time it will read that value and if the value deeming the program as registered is there i could go from there.
It seems like it would be easy, I just havent had any experience with the registry API's before.
all advice is much appreciated.
--- Science does not explain why things are what they are. What we get from Science is our interpretation of how things do what they do.
--- No Scientific law of the universe is stable, we did not create it, and we will never understand all of its abilities.
--- What we determine as reality is a mere assumption of what tomorrow will be based on what yesterday was.
If registered = False Then Form1.Caption = "UnRegistered!"
If NC = 10 Then registered = True
If registered = True Then Form1.Caption = "Registered!!"
End Sub
Two reasons I dont want to use this..1. unless I learn how to encrypt what is entered into the file (which would be "registered" or "unregistered") any user who finds the file can easily modify it to what they need. Another reason i dont want to use an ini is, I just merely dissassembled my own program and its by far clear to the eye where the ini file is located..so I couldnt hide it.
Last edited by Resilience; Jun 26th, 2005 at 05:07 PM.
--- Science does not explain why things are what they are. What we get from Science is our interpretation of how things do what they do.
--- No Scientific law of the universe is stable, we did not create it, and we will never understand all of its abilities.
--- What we determine as reality is a mere assumption of what tomorrow will be based on what yesterday was.
lol hijack, dont take it too seriously. They asked a completely general question about the registry so i figured why waste space when i can ask about the registry here too..
As i said, i had already looked at other examples that i found thru my searches..but I couldnt modify any of them to my needs so I was hopeing it wouldnt be too much of a problem for someone to create one.
Also, that link you gave me goes to a topic that is of no help..They link to another site "www.vbworld.com/registry" but that gives me a "file not found" error.
--- Science does not explain why things are what they are. What we get from Science is our interpretation of how things do what they do.
--- No Scientific law of the universe is stable, we did not create it, and we will never understand all of its abilities.
--- What we determine as reality is a mere assumption of what tomorrow will be based on what yesterday was.
sorry i dont know Delphi, im using vb6 not sure if it would work all the same..Anyway, does anybody know how to write what i need to the registry? thanks.
--- Science does not explain why things are what they are. What we get from Science is our interpretation of how things do what they do.
--- No Scientific law of the universe is stable, we did not create it, and we will never understand all of its abilities.
--- What we determine as reality is a mere assumption of what tomorrow will be based on what yesterday was.