+// wxConfigBase
+// ----------------------------------------------------------------------------
+
+wxConfigBase *wxConfigBase::Set(wxConfigBase *pConfig)
+{
+ wxConfigBase *pOld = ms_pConfig;
+ ms_pConfig = pConfig;
+ return pOld;
+}
+
+wxConfigBase *wxConfigBase::Create()
+{
+ if ( ms_bAutoCreate && ms_pConfig == NULL ) {
+ ms_pConfig =
+ #if defined(__WXMSW__) && defined(wxCONFIG_WIN32_NATIVE)
+ #ifdef __WIN32__
+ new wxRegConfig(wxTheApp->GetVendorName() + '\\'
+ + wxTheApp->GetAppName());
+ #else //WIN16
+ new wxIniConfig(wxTheApp->GetAppName(), wxTheApp->GetVendorName());
+ #endif
+ #else // either we're under Unix or wish to use files even under Windows
+ new wxFileConfig(wxTheApp->GetAppName());
+ #endif
+ }
+
+ return ms_pConfig;
+}
+
+const char *wxConfigBase::Read(const char *szKey, const char *szDefault) const
+{
+ static char s_szBuf[1024];
+ wxString s;
+ Read(&s, szKey, szDefault);
+ strncpy(s_szBuf, s, WXSIZEOF(s_szBuf));
+
+ return s_szBuf;
+}
+
+// ----------------------------------------------------------------------------
+// Config::PathChanger