Registery Help!

  • 19 years ago

    How come this code doesn't work? I get Expected:=
    SaveSettingString("HKEYCURRENTUSER", "Software\Microsoft\MessengerService\", "IM Color", "FF 00 00")


    I've tried it with severla registery modules too, always the same error! Thanks.

  • 19 years ago

    I presume you are actually using the GetSetting and SaveSetting commands. These commands only ever save to
    HKEYCURRENTUSER\Software\VB and VBA Program Settings\%AppName%


    If you want to save/read from any where else you need to use the API registry functions. (There is a class module available from http://www.vbaccelerator.com/ which does the hard work for you....)

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“If Java had true garbage collection, most programs would delete themselves upon execution.” - Robert Sewell