Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need an example for the GetRegKey() in registry.vcx
Message
De
24/10/2001 09:35:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Need an example for the GetRegKey() in registry.vcx
Divers
Thread ID:
00572563
Message ID:
00572563
Vues:
82
I have been trying to get the registry functions to work to no avail.

I admit to being a bit dense sometimes, but after carefully reading throug the functions and the sample code it's still all greek to me.

The following is part of the code for the GetKeyValue() function:
LPARAMETER cValueName,cKeyValue

LOCAL lpdwReserved,lpdwType,lpbData,lpcbData,nErrCode
STORE 0 TO lpdwReserved,lpdwType
STORE SPACE(256) TO lpbData
STORE LEN(m.lpbData) TO m.lpcbData

DO CASE
CASE TYPE("THIS.nCurrentKey")#'N' OR THIS.nCurrentKey = 0
	RETURN ERROR_BADKEY
And that's as far as it ever gets.

The nCurrentKey is initially 0 and I dont see it being set anywhere, and it's not part of the parameters, so how does this work and what's the value supposed to be?

We used to have lots of (not always very good) code samples in VFP Help butn it seems like a lot of that went down the drain with VFP7.

Anyway,

TIA
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform