Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RegQueryValue in FoxFire
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00688465
Message ID:
00688535
Vues:
16
There's VFP registry class in the registry class library in the FFC subdirectory.
#INCLUDE registry.h
oReg = NEWOBJECT("registry", "registry")
lc_buffer = space(255)
lc_regname = "Excel.Sheet.5\protocol\StdFileEditing\Server"

oReg.GetRegKey("", @lc_buffer, lc_regname, HKEY_CLASSES_ROOT)
? lc_buffer
>Hi, I am having trouble with some foxtools API calls via REGFN() / CALLFN.
>
>I have replaced most of them with DECLARE statements, but I have one that I can't change as it uses SHELL.DLL which is a 16-bit dll, and won't work with DECLARE.
>Does anyone know another command I can use? here is the code
>
>
>ln_regqry = REGFN("RegQueryValue","L@C@C@L","L","SHELL.DLL")
>*-- Set up buffers
>lc_buffer = space(255)
>ln_buflen = 255
>lc_regname = "Excel.Sheet.5\protocol\StdFileEditing\server"
>ln_bytes = CALLFN(ln_regqry,1,@lc_regname,@lc_buffer,@ln_buflen)
>
>
>Thanks,
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform