Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question Using Rick Strahls Registry Class
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Question Using Rick Strahls Registry Class
Divers
Thread ID:
00673924
Message ID:
00673924
Vues:
87
I have the following code
#DEFINE HKEY_CLASSES_ROOT -2147483648

CLEAR

SET PROCEDURE TO Registry.prg
oReg = CREATEOBJECT('registry')

oDll = CREATEOBJECT("MyDll.MyClass")
cClassId = COMCLASSINFO(oDll, 4)
cClassId = "CLSID\" + cClassId + "\InProcServer32"

? oReg.ReadRegistryString(HKEY_CLASSES_ROOT, cClassId, "Default")
? oReg.ReadRegistryString(HKEY_CLASSES_ROOT, cClassId, "ThreadingModel")

RETURN
In the registry, the default value contains the full path and name of
my DLL, which is what I want.

In the 2 calls to ReadRegistryString above, the ThreadingModel is returned
fine, but with the default key, I get NULL returned. Is there some way of
acessing 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