1. registry files corresponding to the recent registry.h changes

2. badly famous wxRegConfig::DeleteAll() bug corrected


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-01-23 23:50:24 +00:00
parent 8801e78f99
commit 90186e524e
4 changed files with 40 additions and 17 deletions

View File

@@ -202,18 +202,16 @@ void MyFrame::OnAbout(wxCommandEvent&)
void MyFrame::OnDelete(wxCommandEvent&)
{
// VZ: it seems that DeleteAll() wreaks havoc on NT. Disabled until I
// investigate it further, do _not_ compile this code in meanwhile!
// JACS: wxRegConfig::DeleteAll is disabled, so it's safe to call DeleteAll,
// it just won't do anything useful on Win95/NT.
if ( wxConfigBase::Get()->DeleteAll() ) {
wxLogMessage("Config file/registry key successfully deleted.");
wxLogMessage("Config file/registry key successfully deleted.");
delete wxConfigBase::Set((wxConfigBase *) NULL);
wxConfigBase::DontCreateOnDemand();
}
else
wxLogError("Deleting config file/registry key failed.");
delete wxConfigBase::Set((wxConfigBase *) NULL);
wxConfigBase::DontCreateOnDemand();
}
else
{
wxLogError("Deleting config file/registry key failed.");
}
}
MyFrame::~MyFrame()