Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registry and Windows 95
Message
De
01/03/1999 14:12:43
Jonathan Cochran
Alion Science and Technology
Maryland, États-Unis
 
 
À
24/02/1999 19:20:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00191169
Message ID:
00192792
Vues:
21
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
Fil
Voir

Click here to load this message in the networking platform