General information
Category:
Windows API functions
Ed,
Thanks for your responses. I've finally found the problem, though. I was adding a backslash to the registry path in the call to the GetRegKey method in MS's Registry class (e.g., "Software\Company\Product\Settings\"). It seems that W95 doesn't like that trailing backslash there.
Jonathan
>>Using VFP6.0, VS SP2...
>>
>>I am using the Registry.vcx class that comes with VFP to read from and write to the registry. Things are working great on Windows NT, but I am having problems with Windows 95. Values are being written correctly, but I can't read from the registry. The RegOpenKey DLL function (which is called by the GetRegKey method) always returns the number 2. Has anyone encountered this, or have any idea what the problem may be?
>>
>
>One further thought - you may not have included the necessary .H file to define some of the constants needed for the API call (like the value for things like HKEY_LOCAL_MACHINE) or you may have omitted the base registry value, in which case the registry class defaults to the context of HKEY_CLASSES_ROOT.
>
>>Thanks,
>>Jonathan Cochran
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only