Results 1 to 3 of 3

Thread: hte api

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    San Jose, CA
    Posts
    73

    Question

    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

  2. #2
    Addicted Member
    Join Date
    Feb 2001
    Location
    Classified
    Posts
    234
    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.
    My ICQ Status: (85634850)

    Seriously Sick Tshirts

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Location
    San Jose, CA
    Posts
    73

    Exclamation 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width