msgTitle = wxString(_("File error"));
#if wxUSE_STD_IOSTREAM
- ofstream store(FNSTRINGCAST file.fn_str());
+ ofstream store(wxString(file.fn_str()));
if (store.fail() || store.bad())
#else
- wxFileOutputStream store(FNSTRINGCAST file.fn_str());
+ wxFileOutputStream store(wxString(file.fn_str()));
if (store.LastError() != 0)
#endif
{
msgTitle = wxString(_("File error"));
#if wxUSE_STD_IOSTREAM
- ifstream store(FNSTRINGCAST file.fn_str());
+ ifstream store(wxString(file.fn_str()));
if (store.fail() || store.bad())
#else
- wxFileInputStream store(FNSTRINGCAST file.fn_str());
+ wxFileInputStream store(wxString(file.fn_str()));
if (store.LastError() != 0)
#endif
{