-
What is hte api and how do I use it to manipulate WIN98 registry?
Below is an earlier post. Please Help
aatwell
=======================================
Save,get,deletesetting didn't work
Hi,
It didn't work using the getsetting, savesetting, and deletesetting
commands in VB 6.0. I found a book and copied the code directly
from it and that didn't work either. Any clues? The code I found was
as follows:
Private Sub Command1_Click()
Rem SaveSetting
SaveSetting(appname:="MyApp", Section:="Starup", _
key:="Left", setting:=1)
Rem I also tried this one.
savesetting("MyApp","Startup","Left", 50)
End Sub
Private Sub Command2_Click()
Rem GetSetting
Debug.Print GetSetting(appname := "MyApp", _
section := "Startup", key := "Left", default := "25")
End Sub
Private Sub Command3_Click()
Rem DeleteSetting
DeleteSetting("MyApp", "Startup")
End Sub
Private Sub Command4_Click()
Rem Quit
End
End Sub
-
Go on down to http://www.allapi.net/
they will explane the windows api,
I recomend you download their 'API-Guide' its invaluable for me, im always looking thru it to find what the api cal is that im thinking of (i have Terrible memory)
they will have an example on how to edit the registery with the aip ither on their site, or in the Guide program.
-
SubKey
Ok, This is beginning to work. How do I savesettings, getsettings, and deletesettings for subkeys. By that I mean a subkey of a subkey.
Like this:
HKEY_CLASSES_ROOT
MYAPP
DefaultIcon
Default
This should allow me to setup a specific icon in the registery for my particular app. But, I can only go one strPath length. I can get it to put a value at the MYAPP level but not so many levels deep.
Any clues.
-- aatwell