Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Do the Registry commands work?

Author
Message
iaretony
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 16th Sep 2003 17:47
Included is some registry code I worked on this morning. Only problem is, it doesn't work. Using regedit, I cannot find the entrys it's supposedley creating...

Do the registry commands work?

Tony

OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 16th Sep 2003 17:50 Edited at: 16th Sep 2003 18:00
First of all, can you sort out your signature/avatar - that log-on screen is getting very annoying. Plus, non-observant people may think its something to do with DBPro.

Secondly, I think you have add the HKEY_LOCAL bit to the folder name before it will work.


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
iaretony
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 16th Sep 2003 18:22
Signature/Avatar issue sorted out. Sorry about that.

I don't have an "HKEY_LOCAL" group in my registry, I have an "HKEY_LOCAL_MACHINE"... Under which is "SOFTWARE", under which is a bunch of groups created by the applications I've installed... I think I need my new group to end up here too...

So far I have tried:

"\HKEY_LOCAL_MACHINE\SOFTWARE\ChillyGroup"
"\HKEY_LOCAL_MACHINE\ChillyGroup"

and

"HKEY_LOCAL_MACHINE\ChillyGroup"

Any ideas? Does someone here have a working code sample anywhere?

Tony

OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 16th Sep 2003 18:33
Glad you've sorted out your signature/avatar.

I did mean HKEY_LOCAL_MACHINE by the way - but even with that added I cant get it to work - I dont have any example code as I'm an anti-registrian...


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 16th Sep 2003 19:32
hee hee - "anti-registrian" , same here.

-RUST-
iaretony
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 16th Sep 2003 19:48
Damn, I have need nothing but people saying this feature doesn't work... Kind of a bummer for a bullet feature listed on the box....

Is it really true that the registry commands just don't work? I'm sure they do, their is just some stupid requirement not documented very well...

Tony

iaretony
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 16th Sep 2003 20:04
If these registry commands truly don't work, I guess I can write a DLL that can write and read registry entries... But I wan't to know for SURE that I can't do it in DB before I do that...

Tony

IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th Sep 2003 20:57 Edited at: 16th Sep 2003 23:36
Strange ... works for me



It puts the data into HKEY_LOCAL_MACHINE, and also don't forget that you cannot write data to the highest level of the registry.
CloseToPerfect
23
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 16th Sep 2003 23:11
works fine for me as well.
CTP
DJxDJ
22
Years of Service
User Offline
Joined: 5th Aug 2003
Location:
Posted: 16th Sep 2003 23:50
Make sure you have administrative access on your machine if you're writing to HKLM.
iaretony
23
Years of Service
User Offline
Joined: 6th Jun 2003
Location:
Posted: 17th Sep 2003 00:54
First, thank you for posting that source. I think I can blame this one (once again) on a lack of good documentation.

I tried a number of combinations, but according to the docs (and even the USAGE example), my code should have worked. Oh well. One more DB gotcha.

Tony

OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 18th Sep 2003 14:20
It was the absence of SOFTWARE\ that causes the problems - I knew something needed to be added, but I didn't know what.


Avatar & Logo by Indi. Come to the UK DBPro Convention in Chichester

Login to post a reply

Server time is: 2026-07-25 07:01:42
Your offset time is: 2026-07-25 07:01:42