Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Registry and Windows 95
Message
From
01/03/1999 14:12:43
Jonathan Cochran
Alion Science and Technology
Maryland, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00191169
Message ID:
00192792
Views:
20
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
Map
View

Click here to load this message in the networking platform