#include "wx/dynlib.h"
#include "wx/file.h"
#include "wx/wfstream.h"
+#include "wx/msw/private.h"
// Windows headers
#ifdef __WXWINCE__
-#include "wx/msw/private.h"
#include <winbase.h>
#include <winreg.h>
#endif
m_mode = Write;
// reset old data
- m_strKey.empty();
+ m_strKey.clear();
m_dwLastError = 0;
}
m_dwLastError = RegSetValueEx((HKEY) m_hKey,
RegValueStr(szValue),
(DWORD) RESERVED, REG_SZ,
- (RegString)strValue.t_str(),
+ (RegString)wxMSW_CONV_LPCTSTR(strValue),
(strValue.Len() + 1)*sizeof(wxChar));
if ( m_dwLastError == ERROR_SUCCESS )
return true;
wxFFileOutputStream ostr(filename, wxT("w"));
- return ostr.Ok() && Export(ostr);
+ return ostr.IsOk() && Export(ostr);
#else
wxUnusedVar(filename);
return false;