VARIANT [Visual C++] - C++ - Programmation
Marsh Posté le 21-06-2005 à 17:15:49
En fait je veux mettre dans un VARIANT le parametre hDefKey de cette fonction : 
 
 
uint32 SetDWORDValue( 
  uint32 hDefKey, 
  string sSubKeyName, 
  string sValueName, 
  uint32 lValue 
); 
 
hDefKey  
[in] Parameter that specifies the tree that contains the sSubKeyName path. The default value is HKEY_LOCAL_MACHINE (&H80000002).  
The following trees are defined in Winreg.h: 
 
HKEY_CLASSES_ROOT (&H80000000)  
HKEY_CURRENT_USER (&H80000001)  
HKEY_LOCAL_MACHINE (&H80000002)  
HKEY_USERS (&H80000003)  
HKEY_CURRENT_CONFIG (&H80000005)  
HKEY_DYN_DATA (&H80000006)  
Marsh Posté le 21-06-2005 à 17:11:18
Salut, j'ai un peu de mal avec les VARIANT.
Je voudrais sauvegarder un uint32 dans un variant, je fais ca mais ca a pas l'air d'etre correct :