git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31106
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- FILE *fd = wxFopen(filename, wxT("r"));
+ FILE *fd = wxFopen(filename.fn_str(), wxT("r"));
if (!fd)
return false;
bool eof = false;
if (!fd)
return false;
bool eof = false;
if (!table)
table = wxDefaultResourceTable;
if (!table)
table = wxDefaultResourceTable;
- FILE *fd = wxFopen(f, wxT("r"));
+ FILE *fd = wxFopen(f.fn_str(), wxT("r"));
- FILE *f = wxFopen(filename, _T("r"));
+ FILE *f = wxFopen(filename.fn_str(), _T("r"));
if (f)
{
thewxExprDatabase = this;
if (f)
{
thewxExprDatabase = this;
bool wxExprDatabase::Write(const wxString& fileName)
{
bool wxExprDatabase::Write(const wxString& fileName)
{
- FILE *stream = wxFopen( fileName, _T("w+"));
+ FILE *stream = wxFopen( fileName.fn_str(), _T("w+"));
if (!stream)
return false;
if (!stream)
return false;
- FILE *handle = wxFopen(file, wxT("rb"));
+ FILE *handle = wxFopen(wxFNCONV(file), wxT("rb"));
if (!handle) return false;
// Read placeable metafile header, if any
if (!handle) return false;
// Read placeable metafile header, if any
void rc2wxr::Convert(wxString wxrfile, wxString rcfile)
void rc2wxr::Convert(wxString wxrfile, wxString rcfile)
+ m_rc.Open(rcfile);
+ m_filesize=m_rc.Length();
+ if( (m_wxr = wxFopen( wxrfile.fn_str(), _T("wt") )) == NULL )
+ {
+ return;
+ }
-m_rc.Open(rcfile);
-
-m_filesize=m_rc.Length();
-
-if( (m_wxr = wxFopen( wxrfile, _T("wt") )) == NULL )
-
-{
-
- return;
-
-}
-
-
-
-
-
-wxString tok,prevtok;
-
-
-
-
-
-while (!m_done)
-
-{
-
-
-
-tok=GetToken();
-
-
-
-if (tok==_T("DIALOG"))
-
-{
-
-ParseDialog(prevtok);
-
-}
-
-
-
-
-
-if (tok==_T("MENU"))
-
-{
-
-ParseMenu(prevtok);
-
-}
-
-
-
-prevtok=tok;
-
-}
-
-
+ while (!m_done)
+ {
+ tok=GetToken();
+ if (tok==_T("DIALOG"))
+ {
+ ParseDialog(prevtok);
+ }
+ if (tok==_T("MENU"))
+ {
+ ParseMenu(prevtok);
+ }