git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1100
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Name: conftest.cpp
// Purpose: demo of wxConfig and related classes
// Author: Vadim Zeitlin
// Name: conftest.cpp
// Purpose: demo of wxConfig and related classes
// Author: Vadim Zeitlin
// Created: 03.08.98
// RCS-ID: $Id$
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Created: 03.08.98
// RCS-ID: $Id$
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
public:
MyFrame();
virtual ~MyFrame();
public:
MyFrame();
virtual ~MyFrame();
// callbacks
void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
// callbacks
void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
void MyFrame::OnDelete(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!
+#if 0
if ( wxConfigBase::Get()->DeleteAll() ) {
wxLogMessage("Config file/registry key successfully deleted.");
if ( wxConfigBase::Get()->DeleteAll() ) {
wxLogMessage("Config file/registry key successfully deleted.");
wxConfigBase::DontCreateOnDemand();
}
else
wxConfigBase::DontCreateOnDemand();
}
else
wxLogError("Deleting config file/registry key failed.");
}
wxLogError("Deleting config file/registry key failed.");
}