#pragma hdrstop
#endif
-#if wxUSE_CONFIG
+#if wxUSE_INICONF
#ifndef WX_PRECOMP
#include "wx/msw/wrapwin.h"
{
wxChar szBuf[1024];
- GetPrivateProfileString(m_strGroup.wx_str(), NULL, _T(""),
+ GetPrivateProfileString(m_strGroup.wx_str(), NULL, wxT(""),
szBuf, WXSIZEOF(szBuf),
m_strLocalFilename.wx_str());
if ( !wxIsEmpty(szBuf) )
return false;
- GetProfileString(m_strGroup.wx_str(), NULL, _T(""), szBuf, WXSIZEOF(szBuf));
+ GetProfileString(m_strGroup.wx_str(), NULL, wxT(""), szBuf, WXSIZEOF(szBuf));
if ( !wxIsEmpty(szBuf) )
return false;
// first look in the private INI file
// NB: the lpDefault param to GetPrivateProfileString can't be NULL
- GetPrivateProfileString(m_strGroup.wx_str(), strKey.wx_str(), _T(""),
+ GetPrivateProfileString(m_strGroup.wx_str(), strKey.wx_str(), wxT(""),
szBuf, WXSIZEOF(szBuf),
m_strLocalFilename.wx_str());
if ( wxIsEmpty(szBuf) ) {
// now look in win.ini
wxString strKey = GetKeyName(path.Name());
GetProfileString(m_strGroup.wx_str(), strKey.wx_str(),
- _T(""), szBuf, WXSIZEOF(szBuf));
+ wxT(""), szBuf, WXSIZEOF(szBuf));
}
if ( wxIsEmpty(szBuf) )
m_strLocalFilename.wx_str()) != 0;
if ( !bOk )
+ {
wxLogLastError(wxT("WritePrivateProfileString"));
+ }
return bOk;
}
bool wxIniConfig::DoWriteLong(const wxString& szKey, long lValue)
{
- return Write(szKey, wxString::Format(_T("%ld"), lValue));
+ return Write(szKey, wxString::Format(wxT("%ld"), lValue));
}
bool wxIniConfig::DoReadBinary(const wxString& WXUNUSED(key),
NULL, m_strLocalFilename.wx_str()) != 0;
if ( !bOk )
+ {
wxLogLastError(wxT("WritePrivateProfileString"));
+ }
return bOk;
}
NULL, m_strLocalFilename.wx_str()) != 0;
if ( !bOk )
+ {
wxLogLastError(wxT("WritePrivateProfileString"));
+ }
return bOk;
}
return false;
}
-#endif // wxUSE_CONFIG
+#endif // wxUSE_INICONF