msgTitle = wxString(_("File error"));
#if wxUSE_STD_IOSTREAM
- ofstream store(file.fn_str());
+ ofstream store(FNSTRINGCAST file.fn_str());
if (store.fail() || store.bad())
#else
- wxFileOutputStream store(file.fn_str());
+ wxFileOutputStream store(FNSTRINGCAST file.fn_str());
if (store.LastError() != 0)
#endif
{
msgTitle = wxString(_("File error"));
#if wxUSE_STD_IOSTREAM
- ifstream store(file.fn_str());
+ ifstream store(FNSTRINGCAST file.fn_str());
if (store.fail() || store.bad())
#else
- wxFileInputStream store(file.fn_str());
+ wxFileInputStream store(FNSTRINGCAST file.fn_str());
if (store.LastError() != 0)
#endif
{
}
wxDocTemplate *theTemplate = (wxDocTemplate *)wxGetSingleChoiceData(_("Select a document template"), _("Templates"), n,
- strings, data);
+ strings, (char **)data);
delete[] strings;
delete[] data;
return theTemplate;
}
}
wxDocTemplate *theTemplate = (wxDocTemplate *)wxGetSingleChoiceData(_("Select a document view"), _("Views"), n,
- strings, data);
+ strings, (char **)data);
delete[] strings;
delete[] data;
return theTemplate;