Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rick Strahl's Registry Class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00628780
Message ID:
00628958
Vues:
16
Don't you need a \ between the GUID and InProcServer32?

>I downloaded Rick's class, and I'm using it to determine the location
>of a DLL I created in VFP:
>
>
>** Instantiate Rick's class
>SET PROCEDURE TO registry.prg
>oReg = CREATEOBJECT('registry')
>
>** instantiate the VFP DLL and get the GUID
>oDll = CREATEOBJECT("mydll.myclass")
>cGuid = ADDBS(COMCLASSINFO(oDll, 4))
>
>** Form the parameter values
>nHKey = HKEY_CLASSES_ROOT
>cSubkey = "\CLSID\" + cGuid + "InProcServer32"
>cEntry = "(default)"
>
>? oReg.ReadRegistryString(nHKey, cSubkey, cEntry)
>

>
>The ReadRegistryString function is returning NULL, and the
>parameters are correct. The entry IS in the registry.
>
>The installed path of the DLL is in the "(Default)" key.
>
>
>
>
>.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform