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
Divers
Thread ID:
00673924
Message ID:
00674211
Vues:
19
Try
? oReg.ReadRegistryString(HKEY_CLASSES_ROOT, cClassId, "")
>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?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform