www.MignonSoft.com - Développement C++
|
SFC (v1.2) |
voir aussi: documentation: |
|
|||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
MyString for (ptrListInt->GoFirst();ptrListInt->More();ptrListInt->GoNext()) // Example qui ecrit dans la registry dans
// HKCU\\Software\\MyProg // | String = "String // | BOOL = 0 // | float = 1.23 // | int = 235 // | subKey1 // | | none // | subKey2 // | | multi = "ligne1" , "ligne2" MyRegistry reg(TRUE); // creation si clef ou sous-clef n'existe pas reg = "HKCU\\Software\\MyProg"; MyString stringVal = "text"; BOOL boolVal = FALSE; float floatVal = 1.23; int intVal = 235; // change le format suivant le type de la variable reg.SetValue("String",stringVal); // type = REG_SZ reg.SetValue("BOOL",(int)boolVal); // type = REG_DWORD reg.SetValue("float",floatVal); // type = REG_SZ reg.SetValue("int",intVal); // type = REG_DWORD // creation de sous clef reg = "\\subKey1"; reg.SetValue("none"); // type = REG_NONE // creation de sous clef avec deplacement reg ="..\\subKey2"; MyList<MyString> lString; MyString temp; temp="ligne1"; lString+=temp; temp="ligne2"; lString+=temp; reg.SetValueMulti("multi",&lString); // type = SetValueMulti cf.: pour un example exaustifs voir TestRegistry |
|||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
globalement version beta, sauf les release des élément ci-dessous:
|
|||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||
|