the following code:
XmlElement* mXmlFile = new XmlElement ( “File” );
mXmlFile->setAttribute( “name”, currentdoc );
mXmlFile->setAttribute( “Comment”, “Enter comments” );
give me an error at compile time:
.\src\MainComponent.cpp(203) : error C2664: ‘void juce::XmlElement::setAttribute(const juce::tchar *const ,const juce::String &) throw()’ : cannot convert parameter 1 from ‘const char [8]’ to 'const juce::tchar *const ’
yet, I have coded exactly as in the documentation.
How will I set the attribute name as a tchar *const?