PDA

Click to See Complete Forum and Search --> : Reg sux!!!


nukem996
Mar 2nd, 2001, 03:59 PM
A few days ago my friends computer got fu<|<ed cause Dell sent him a bad hard drive. I fixed it so he could get into windows. But I had to reinstall Windows. That took out the reg. It really sucked cause I had to reinstall everything to backup.

Y did I have to do this?

Most programs save to the reg. When the reg got deleted they had none of there settings. The reg holds everything infact after I got it working the only thing that was working was windows. No sound, only 16 colors, ect.

I hate the reg!!! The why I use ini files to save settings for my programs.

Mar 2nd, 2001, 04:03 PM
The Registry is quicker and a little easier than using INI files. I back up the registry for my computer every week.

Active
Mar 3rd, 2001, 03:46 AM
HB..

Registry is a Special Kind of Database optimised for
High Speed access. If You do the Same thing With
Ini Files...Window...Will be Windoze....for Ever.

Windows98 Automatically Backs Up your Registry.
So don't Worry about that.

One Important Thing...Why They did not use
Ini files is because...Windows have to allocate
Memory just to store the File Handles of the ini
File.Morever Constant Parsing of the Files would
Greatly Take over the Processor time.

Thank god ! they Have something Like Registry.

HarryW
Mar 3rd, 2001, 03:47 AM
I don't usually use either, I make my own binary files.

Fox
Mar 3rd, 2001, 05:44 AM
I absolutely agree!

I hate the registry principe! I once made a class module to handle settings for my projects in files and I won't ever use the registry to store settings.

Mar 3rd, 2001, 06:51 AM
If the registry is optimised for high speed access, why is it that when i search for a key in the registry with regedit, it takes ages, (up to 20 secs!), but in notepad, you search for a string and it is instant.

I think perhaps people are just repeating MS properganda ?

parksie
Mar 3rd, 2001, 07:11 AM
If you searched for the string in every single .ini file, which is what searching in RegEdit does, then it would take a lot longer. And using INI files things like COM just wouldn't work due to the sheer volume of data required.

Active
Mar 3rd, 2001, 08:09 AM
Parsie Said What i meant !

BTW, I am Not Employed by Microsoft or anything.
I have to humbly State...I am not That Intelligent.

Active
Mar 3rd, 2001, 08:36 AM
To emphasize what Parksie meant by sheer volume of data

Here is the Log of all Calls Made to registry when
I just Opened the Notepad theough the Start Menu.
I did not even do anything with that.. I just Opened it.
* This Was Possible using a Program Called Registry Monitor download it Here
http://www.sysinternals.com/ntw2k/source/regmon.shtml

I have attached the File...See it for Yourself.

Mar 3rd, 2001, 08:39 AM
I still prefer ini files in VB due to the fact that i dont like either option of using the registry in vb.

You can either use the vb functions (like savesetting etc), but that puts your data right down in some subkey somewhere in a vb folder thingy. I think that looks very unprofessional to anyone browsing the registry.

Or you can use the API, if you happen to be good at rocket science. There are about 15 different api calls which seems a bit over the top to me. Someone described it as a database earlyer, well no database i have ever used required me to get handles and open and close tables when tring to access data etc.

Mar 3rd, 2001, 08:56 AM
See, even notepad is bloatware. I didt read all of that list, but i scrolled down it and surely it ist neccisarry to retrive that much data for a simple little program like notepad?