Need Registry functions
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Paul.
What exactly do you need to do??
I'm using API calls to read registry keys and it works fine for me. That's as far as I got cause that's all I needed
There is a code snippet of the Procedure to read registry keys on the PB Resources Site.
http://www.reelmediaproductions.com/pb
Edited by - paul on 22 January 2002 04:17:36
What exactly do you need to do??
I'm using API calls to read registry keys and it works fine for me. That's as far as I got cause that's all I needed

There is a code snippet of the Procedure to read registry keys on the PB Resources Site.
http://www.reelmediaproductions.com/pb
Edited by - paul on 22 January 2002 04:17:36
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Fangbeast.
This works:
WriteRegString("Program Title", "iFinder Pro")
This doesn't:
MyVar$ = "iFinder Pro"
WriteRegString("Program Title", MyVar$)
But I need the variable passing!!!
Fangles
I need to READ and WRITE registry items. The problem I am having with Mr Skunk's registry library is that it will not write the contents of variables, only literals and I know it used to work on a previous version of PB (arrrghghg).What exactly do you need to do??
I'm using API calls to read registry keys and it works fine for me. That's as far as I got cause that's all I needed
There is a code snippet of the Procedure to read registry keys on the PB Resources Site.
http://www.reelmediaproductions.com/pb
Edited by - paul on 22 January 2002 04:17:36
This works:
WriteRegString("Program Title", "iFinder Pro")
This doesn't:
MyVar$ = "iFinder Pro"
WriteRegString("Program Title", MyVar$)
But I need the variable passing!!!
Fangles
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Danilo.
Hmmm.... thats the same.
The pointer to the variable is pushed on
the stack.... so it should work.
Did you try:
??
cya,
...Danilo
(registered PureBasic user)
Code: Select all
This works:
WriteRegString("Program Title", "iFinder Pro")
This doesn't:
MyVar$ = "iFinder Pro"
WriteRegString("Program Title", MyVar$)
The pointer to the variable is pushed on
the stack.... so it should work.
Did you try:
Code: Select all
MyVar.s = "iFinder Pro"
WriteRegString("Program Title", MyVar.s)
cya,
...Danilo
(registered PureBasic user)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Fangbeast.
Fangles
Just tried it, no luck whatsoever. Frustrated as hell.Hmmm.... thats the same.Code: Select all
This works: WriteRegString("Program Title", "iFinder Pro") This doesn't: MyVar$ = "iFinder Pro" WriteRegString("Program Title", MyVar$)
The pointer to the variable is pushed on
the stack.... so it should work.
Did you try:??Code: Select all
MyVar.s = "iFinder Pro" WriteRegString("Program Title", MyVar.s)
cya,
...Danilo
(registered PureBasic user)
Fangles
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by El_Choni.
Have a nice day,
El_Choni
If the problem arises the second time you use the function, the error must be that the function doesn't update the PureBasic string pointer correctly. Sorry if this doesn't help you, I hope Mr. Skunk reads this.Anyone got registry handling libraries that work?? I'm Frustrated trying to get Mr Skunk's registry library working the same way twice in a row. COuld really use something that works.
Fangles
Have a nice day,
El_Choni
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Danilo.
if you return a string.
I think ´WriteRegString("Program Title", MyVar$)´
doesnt return a string.
cya,
...Danilo
(registered PureBasic user)
Updating the PB string pointer is only neededIf the problem arises the second time you use the function, the error must be that the function doesn't update the PureBasic string pointer correctly.
if you return a string.
I think ´WriteRegString("Program Title", MyVar$)´
doesnt return a string.
cya,
...Danilo
(registered PureBasic user)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm