I am using the wxWidgets library (formally wxWindows) and the TinyXML library. I want to parse a value from the XML document which will serve as my User Interface structure and update the button values for the elements of the sibling nodes
The variables for the button labels are lbutton1, lbutton2, lbutton3, lbutton4, etc.
I have used the following code to parse the XML document (hopefully) correctly:
node = doc.FirstChild( "UID" );
assert( node );
uidElement = node->ToElement();
assert( uidElement );
button1 = node->ToElement();
assert ( button1 );
When I add the following line
lbutton1 = button1;
, the code will not compile and I receive the following errors:
ambiguous overload for 'wxString& = TiXmlElement*&; operator
candidates are: wxString&
[Build Error] [UI.o] Error 1
I am using Bloodshed Dev-C++. It seems to be some sort of circular reference I've created...I think...