|
-
Feb 6th, 2004, 05:31 PM
#1
Thread Starter
Lively Member
saving to the regestry?
right now, i am working with textfiles (very innefficiant...) how do i save stuff onto the regestry????
-
Feb 6th, 2004, 08:00 PM
#2
Addicted Member
This is the method I use. It works fairly well.
Encrypt and write registry values
"And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
Frank Zappa
-
Feb 6th, 2004, 08:02 PM
#3
Addicted Member
PS: I know the sample only shows connection strings but it can be modified to save other info also. The nice part is it's encrypted so you can keep sensative info there aswell.
"And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
Frank Zappa
-
Feb 6th, 2004, 08:20 PM
#4
Re: saving to the regestry?
Originally posted by Synth3t1c
right now, i am working with textfiles (very innefficiant...) how do i save stuff onto the regestry????
Actually, if done correctly, a textfile should be more efficient. It would also be easier for users to take settings with them when they format or go from computer to computer.
-
Feb 6th, 2004, 08:28 PM
#5
Addicted Member
I've used both and there really isn't that much of a difference. in performance between the registry and text files. I only use the registry because I don't want users to be able to take/read the text files for security reasons. Using the app.config to hold key value pairs for config info works pretty well also if hiding your config info is not important to you. Lemme know I have the code for that also.
"And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
Frank Zappa
-
Feb 6th, 2004, 09:55 PM
#6
Thread Starter
Lively Member
actually, text files would be easier. here, im writting a gradebook program. i can make it from the period choice, to the student names (including loading and saving student names) and then thats it... i want it to be able to load a table, but since theres no such thing....
-
Feb 6th, 2004, 10:35 PM
#7
Originally posted by Synth3t1c
i want it to be able to load a table, but since theres no such thing....
You're gonna throw it into the registry? bleh!
Throw it into an XML file. Or a spreadsheet. Hell, you don't have to have it in table form when saved, just when it is displayed.
You could even serialize whatever you are using as a table to save it.
-
Feb 6th, 2004, 10:37 PM
#8
Thread Starter
Lively Member
Originally posted by kasracer
Throw it into an XML file. Or a spreadsheet. Hell, you don't have to have it in table form when saved, just when it is displayed.
i want them to be able to have a table form inside the program! teach me teacher!
-
Feb 7th, 2004, 06:37 PM
#9
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|