Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need help with reading from registry

1 view
Skip to first unread message

rrp...@gmail.com

unread,
Nov 14, 2008, 4:54:44 AM11/14/08
to
Hi! I have a big problem. I need to read all keys from registry to
TListBox for example:

reg := TRegistry.Create;
reg.RootKey := HKEY_LOCAL_MACHINE;
reg.OpenKey('\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall',
false);
reg.GetKeyNames(tmp);
tmp.SaveToStream(str); <<-- here app stop an have error, why??
lbApp.Items.LoadFromStream(str);

if I run it i have an error:

---------------------------
Project1
---------------------------
Access violation at address 0042577D in module 'Project1.exe'. Read of
address 0000BD55.
---------------------------
OK
---------------------------

Can some one help me??

Sorry for my English

Jamie

unread,
Nov 14, 2008, 7:26:20 PM11/14/08
to
Did you first create the TMP ?
TMP := TstringList.Create; ?


http://webpages.charter.net/jamie_5"

rrpriv

unread,
Nov 15, 2008, 8:00:11 PM11/15/08
to
On Nov 15, 1:26 am, Jamie

I don't test it but i wrote on other group and i have working code:

reg := TRegistry.Create;
reg.RootKey := HKEY_LOCAL_MACHINE;
reg.OpenKey('\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall',
false);

reg.GetKeyNames(lbApp.Items);

---
thx for help

0 new messages