- wxRegConfig regconf(_T("console"), _T("wxwindows"));
- regconf.Write(_T("Hello"), wxString(_T("world")));
+ wxConfig *config = new wxConfig("myapp");
+ config->SetPath("/group1");
+ config->Write("entry1", "foo");
+ config->SetPath("/group2");
+ config->Write("entry1", "bar");
+}
+
+static void TestRegConfRead()
+{
+ wxConfig *config = new wxConfig("myapp");
+
+ wxString str;
+ long dummy;
+ config->SetPath("/");
+ puts("Enumerating / subgroups:");
+ bool bCont = config->GetFirstGroup(str, dummy);
+ while(bCont)
+ {
+ puts(str);
+ bCont = config->GetNextGroup(str, dummy);
+ }