Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RegQueryValue in FoxFire
Message
 
 
To
11/08/2002 23:20:10
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00688465
Message ID:
00688535
Views:
15
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform