git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32367
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
m_rc.Open(rcfile);
m_filesize=m_rc.Length();
{
m_rc.Open(rcfile);
m_filesize=m_rc.Length();
- if( (m_wxr = wxFopen( wxrfile.fn_str(), _T("wt") )) == NULL )
+ if( (m_wxr = wxFopen( wxrfile, _T("wt") )) == NULL )
wxSprintf(buf, _T("%s.idx"), file_name);
wxSprintf(buf, _T("%s.idx"), file_name);
- index_file = wxFopen(wxFNCONV(buf), _T("r"));
+ index_file = wxFopen(buf, _T("r"));
if (index_file == NULL)
return 0;
if (index_file == NULL)
return 0;
}
wxSprintf(buf, _T("%s.dat"), file_name);
}
wxSprintf(buf, _T("%s.dat"), file_name);
- data_file = wxFopen(wxFNCONV(buf), _T("r"));
+ data_file = wxFopen(buf, _T("r"));
if (data_filename)
wxSprintf(buf, _T("%s.dat"), data_filename);
if (data_filename)
wxSprintf(buf, _T("%s.dat"), data_filename);
- file = wxFopen(wxFNCONV(buf), _T("r"));
+ file = wxFopen(buf, _T("r"));
if (! (data_filename && file))
{
wxSprintf(error_buf, _T("Poetry data file %s not found\n"), buf);
if (! (data_filename && file))
{
wxSprintf(error_buf, _T("Poetry data file %s not found\n"), buf);
if (data_filename)
wxSprintf(buf, _T("%s.dat"), data_filename);
if (data_filename)
wxSprintf(buf, _T("%s.dat"), data_filename);
- file = wxFopen(wxFNCONV(buf), _T("r"));
+ file = wxFopen(buf, _T("r"));
if (! (data_filename && file))
{
wxSprintf(error_buf, _T("Poetry data file %s not found\n"), buf);
if (! (data_filename && file))
{
wxSprintf(error_buf, _T("Poetry data file %s not found\n"), buf);
if (index_filename)
wxSprintf(buf, _T("%s.idx"), index_filename);
if (index_filename)
wxSprintf(buf, _T("%s.idx"), index_filename);
- file = wxFopen(wxFNCONV(buf), _T("w"));
+ file = wxFopen(buf, _T("w"));
if (! (data_filename && file))
{
wxSprintf(error_buf, _T("Poetry index file %s cannot be created\n"), buf);
if (! (data_filename && file))
{
wxSprintf(error_buf, _T("Poetry index file %s cannot be created\n"), buf);
static void read_surface( const wxChar *filename )
{
static void read_surface( const wxChar *filename )
{
- FILE *f = wxFopen(wxFNCONV(filename),_T("r"));
+ FILE *f = wxFopen(filename,_T("r"));
if (!f)
{
wxString msg = _T("Couldn't read ");
if (!f)
{
wxString msg = _T("Couldn't read ");