Page 1 of 1

TXMLDocument cant be used with MyDAC

Posted: Thu 11 Aug 2005 11:50
by Guest
Hi
Posted this earlier, i get a error when I am using TXMLDocument with MyDac.

[ERRO]
[C++ Error] satiety.h(75): E2015 Ambiguity between 'TNodeType' and 'Memdata::TNodeType'
[C++ Error] satiety.h(92): E2015 Ambiguity between 'TNodeType' and 'Memdata::TNodeType'
[/ERROR]


I found in your MemData.hpp file a enum called TNodeType.
The TXMLDocument is using a enum called TNodeType to define a a node in an XML document.

I changed the enum in MemData.hpp to TXMyNodeType and it worked.
I changed it to TXMyNodeType because i tought that it was not that likely
that u have another enum with that name but if i am wrong please let me know.

thanks

Posted: Thu 11 Aug 2005 13:04
by Paul
Yes, It is MyDAC internal type and you can rename it in your copy of header. We will fix this problem in the future