Information générale
Catégorie:
Fonctions Windows API
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
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement