wxString and wxChar* access for file functions. Source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -96,77 +96,36 @@ rc2wxr::~rc2wxr()
|
||||
|
||||
|
||||
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);
|
||||
wxString tok,prevtok;
|
||||
|
||||
m_filesize=m_rc.Length();
|
||||
while (!m_done)
|
||||
{
|
||||
tok=GetToken();
|
||||
|
||||
if( (m_wxr = wxFopen( wxrfile, _T("wt") )) == NULL )
|
||||
if (tok==_T("DIALOG"))
|
||||
{
|
||||
ParseDialog(prevtok);
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
wxString tok,prevtok;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
while (!m_done)
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
tok=GetToken();
|
||||
|
||||
|
||||
|
||||
if (tok==_T("DIALOG"))
|
||||
|
||||
{
|
||||
|
||||
ParseDialog(prevtok);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (tok==_T("MENU"))
|
||||
|
||||
{
|
||||
|
||||
ParseMenu(prevtok);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
prevtok=tok;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
fclose(m_wxr);
|
||||
|
||||
//fclose(m_rc);
|
||||
|
||||
m_rc.Close();
|
||||
if (tok==_T("MENU"))
|
||||
{
|
||||
ParseMenu(prevtok);
|
||||
}
|
||||
|
||||
prevtok=tok;
|
||||
}
|
||||
|
||||
fclose(m_wxr);
|
||||
|
||||
m_rc.Close();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user