Help with GetSetting code

  • Thread starter Thread starter John Cosmas
  • Start date Start date
J

John Cosmas

I'm having trouble trying to read the Default key item from CLSID. Here is
an example:

Debug.Print GetSetting(&H8000000002, "SOFTWARE",
"Classes\FrontPage.Editor\CLSID")

I'm trying to fetch the value from the Default key under CLSID. It should
have returned the Class ID/GUID for the class. If there's another key named
something other than (Default), it wil return value for the key.
 
GetSetting returns a setting that you have put there for your app, similar
to an application's own ini file in Windows 3.1. These setting go in a
special part of the registry reserved for VB and VBA Applications. To get
information about another program from the registry you'll need to use API
calls.
 
GetSetting/SaveSetting use a limited area of the registry:
HKLM/Software/VBA Settings, or somesuch. You can't just give them a
root key ID, & expect that to work. Check the parameter definitions!
You'll have to use the win32 API.

HTH,
TC
 
Back
Top