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
Titre:
Rick Strahl's Registry Class
Divers
Thread ID:
00628780
Message ID:
00628780
Vues:
60
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.




.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform