static bool QueryValue(const wxRegKey& rk, const wxString& key, wxString& val) { // prevent pop-up message if key does not exist bool save = wxLog::EnableLogging(false); bool ok = rk.QueryValue(key, val, false); wxLog::EnableLogging(save); return ok; }
bool TryGetValue(const wxRegKey& key, const wxString& str, wxMemoryBuffer &plVal) { return key.IsOpened() && key.HasValue(str) && key.QueryValue(str, plVal); }
bool TryGetValue(const wxRegKey& key, const wxString& str, long *plVal) { return key.IsOpened() && key.HasValue(str) && key.QueryValue(str, plVal); }