#include <wx/string.h>
#endif //WX_PRECOMP
+#include <wx/event.h>
#include <wx/app.h>
#include <wx/log.h>
#include <wx/config.h>
+
+#ifndef __WIN16__
+
#include <wx/msw/registry.h>
#include <wx/msw/regconf.h>
return FALSE;
if ( !m_keyLocal.HasSubkeys() ) {
- wxString strKey = GetPath().Right(wxCONFIG_PATH_SEPARATOR);
+ wxString strKey = GetPath().AfterLast(wxCONFIG_PATH_SEPARATOR);
SetPath(".."); // changes m_keyLocal
return m_keyLocal.DeleteKey(strKey);
}
{
m_keyLocal.Close();
m_keyGlobal.Close();
-
+#if 1
+ wxFAIL_MSG("wxRegConfig::DeleteAll will wipe out your entire registry, so please do not use until it's fixed!");
+ return FALSE;
+#else
bool bOk = m_keyLocalRoot.DeleteSelf();
if ( bOk )
bOk = m_keyGlobalRoot.DeleteSelf();
return bOk;
+#endif
}
+
+#endif
+ // __WIN16__
+