ChanganWang - 2016-05-06

Hello,I'm new to TinyXML.Today,I got two different results when I use macro TIXML_USE_STL.
some code snippets related to this problem are listed below:

TiXmlComment * comment = new TiXmlComment();
QString temp = " The RegionList of file: "+m_sInput+" ";
comment->SetValue(temp.toUtf8().constData());

the correct result should be this:

<!-- The RegionList of file: D:\sss.jpg -->

but when I use macro TIXML_USE_STL I got this:

<!--ionList of file: D:\sss.jpg -->

so why there's difference like this.thank you!

 

Last edit: ChanganWang 2016-05-06