Karl Karpfen
2014-10-15 12:30:25 UTC
Hi,
I thought I did understand the changes in wxString related to c_str(), but
it seems I'm wrong.
Within 2.8 I used a statement like this:
path=wxString::Format(_T("%s%dR"),m_project->m_undoPath->c_str(),m_project->m_redoSteps->size());
As far as I remember the Linux-Version of wxWidgets required the c_str()
for m_undoPath, without I got a crash. Now with 3.0 I changed this line to
path=wxString::Format(_T("%s%dR"),m_project->m_undoPath->char_str(),m_project->m_redoSteps->size());
but this results in an compiler error. So what is the correct way of
formatting a wxString this way with using an other wxString?
Thanks!
I thought I did understand the changes in wxString related to c_str(), but
it seems I'm wrong.
Within 2.8 I used a statement like this:
path=wxString::Format(_T("%s%dR"),m_project->m_undoPath->c_str(),m_project->m_redoSteps->size());
As far as I remember the Linux-Version of wxWidgets required the c_str()
for m_undoPath, without I got a crash. Now with 3.0 I changed this line to
path=wxString::Format(_T("%s%dR"),m_project->m_undoPath->char_str(),m_project->m_redoSteps->size());
but this results in an compiler error. So what is the correct way of
formatting a wxString this way with using an other wxString?
Thanks!
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users