When using XML Data Binding to generate source code for my xml and then adding TAdvStringGrid I get many conflicts:
Glavni.cpp
[BCC32 Error] SearchResponse.h(159): E2316 'TNodeType' is not a member of 'Xmlintf'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
[BCC32 Error] SearchResponse.h(159): E2282 Namespace name expected
Full parser context
Glavni.cpp(10): #include SearchResponse.h
[BCC32 Error] SearchResponse.h(162): E2015 Ambiguity between 'Advgrid::TNodeType' and 'Xml::Xmlintf::TNodeType'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(160): class TXMLmethodResponseType
[BCC32 Error] SearchResponse.h(162): E2113 Virtual function '_fastcall TXMLmethodResponseType::GetNodeType()' conflicts with base class 'IXMLNode'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(160): class TXMLmethodResponseType
[BCC32 Warning] SearchResponse.h(162): W8006 Initializing TNodeType with Xmlintf::TNodeType
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(160): class TXMLmethodResponseType
SearchResponse.h(168): decision to instantiate: TNodeType _fastcall TXMLmethodResponseType::GetNodeType()
--- Resetting parser context for instantiation...
SearchResponse.h(162): parsing: TNodeType _fastcall TXMLmethodResponseType::GetNodeType()
[BCC32 Error] SearchResponse.h(174): E2015 Ambiguity between 'Advgrid::TNodeType' and 'Xml::Xmlintf::TNodeType'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(172): class TXMLparamsType
[BCC32 Error] SearchResponse.h(174): E2113 Virtual function '_fastcall TXMLparamsType::GetNodeType()' conflicts with base class 'IXMLNode'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(172): class TXMLparamsType
[BCC32 Warning] SearchResponse.h(174): W8006 Initializing TNodeType with Xmlintf::TNodeType
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(172): class TXMLparamsType
SearchResponse.h(180): decision to instantiate: TNodeType _fastcall TXMLparamsType::GetNodeType()
--- Resetting parser context for instantiation...
SearchResponse.h(174): parsing: TNodeType _fastcall TXMLparamsType::GetNodeType()
[BCC32 Error] SearchResponse.h(186): E2015 Ambiguity between 'Advgrid::TNodeType' and 'Xml::Xmlintf::TNodeType'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(184): class TXMLparamType
[BCC32 Error] SearchResponse.h(186): E2113 Virtual function '_fastcall TXMLparamType::GetNodeType()' conflicts with base class 'IXMLNode'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(184): class TXMLparamType
[BCC32 Warning] SearchResponse.h(186): W8006 Initializing TNodeType with Xmlintf::TNodeType
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(184): class TXMLparamType
SearchResponse.h(192): decision to instantiate: TNodeType _fastcall TXMLparamType::GetNodeType()
--- Resetting parser context for instantiation...
SearchResponse.h(186): parsing: TNodeType _fastcall TXMLparamType::GetNodeType()
[BCC32 Error] SearchResponse.h(198): E2015 Ambiguity between 'Advgrid::TNodeType' and 'Xml::Xmlintf::TNodeType'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(196): class TXMLvalueType
[BCC32 Error] SearchResponse.h(198): E2113 Virtual function '_fastcall TXMLvalueType::GetNodeType()' conflicts with base class 'IXMLNode'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(196): class TXMLvalueType
[BCC32 Warning] SearchResponse.h(198): W8006 Initializing TNodeType with Xmlintf::TNodeType
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(196): class TXMLvalueType
SearchResponse.h(209): decision to instantiate: TNodeType _fastcall TXMLvalueType::GetNodeType()
--- Resetting parser context for instantiation...
SearchResponse.h(198): parsing: TNodeType _fastcall TXMLvalueType::GetNodeType()
[BCC32 Error] SearchResponse.h(215): E2015 Ambiguity between 'Advgrid::TNodeType' and 'Xml::Xmlintf::TNodeType'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(213): class TXMLstructType
[BCC32 Error] SearchResponse.h(215): E2113 Virtual function '_fastcall TXMLstructType::GetNodeType()' conflicts with base class 'IXMLNode'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(213): class TXMLstructType
[BCC32 Warning] SearchResponse.h(215): W8006 Initializing TNodeType with Xmlintf::TNodeType
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(213): class TXMLstructType
SearchResponse.h(223): decision to instantiate: TNodeType _fastcall TXMLstructType::GetNodeType()
--- Resetting parser context for instantiation...
SearchResponse.h(215): parsing: TNodeType _fastcall TXMLstructType::GetNodeType()
[BCC32 Error] SearchResponse.h(229): E2015 Ambiguity between 'Advgrid::TNodeType' and 'Xml::Xmlintf::TNodeType'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(227): class TXMLmemberType
[BCC32 Error] SearchResponse.h(229): E2113 Virtual function '_fastcall TXMLmemberType::GetNodeType()' conflicts with base class 'IXMLNode'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(227): class TXMLmemberType
[BCC32 Warning] SearchResponse.h(229): W8006 Initializing TNodeType with Xmlintf::TNodeType
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(227): class TXMLmemberType
SearchResponse.h(237): decision to instantiate: TNodeType _fastcall TXMLmemberType::GetNodeType()
--- Resetting parser context for instantiation...
SearchResponse.h(229): parsing: TNodeType _fastcall TXMLmemberType::GetNodeType()
[BCC32 Error] SearchResponse.h(243): E2015 Ambiguity between 'Advgrid::TNodeType' and 'Xml::Xmlintf::TNodeType'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(241): class TXMLarrayType
[BCC32 Error] SearchResponse.h(243): E2113 Virtual function '_fastcall TXMLarrayType::GetNodeType()' conflicts with base class 'IXMLNode'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(241): class TXMLarrayType
[BCC32 Warning] SearchResponse.h(243): W8006 Initializing TNodeType with Xmlintf::TNodeType
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(241): class TXMLarrayType
SearchResponse.h(249): decision to instantiate: TNodeType _fastcall TXMLarrayType::GetNodeType()
--- Resetting parser context for instantiation...
SearchResponse.h(243): parsing: TNodeType _fastcall TXMLarrayType::GetNodeType()
[BCC32 Error] SearchResponse.h(255): E2015 Ambiguity between 'Advgrid::TNodeType' and 'Xml::Xmlintf::TNodeType'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(253): class TXMLdataType
[BCC32 Error] SearchResponse.h(255): E2113 Virtual function '_fastcall TXMLdataType::GetNodeType()' conflicts with base class 'IXMLNode'
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(253): class TXMLdataType
[BCC32 Warning] SearchResponse.h(255): W8006 Initializing TNodeType with Xmlintf::TNodeType
Full parser context
Glavni.cpp(10): #include SearchResponse.h
SearchResponse.h(253): class TXMLdataType
SearchResponse.h(263): decision to instantiate: TNodeType _fastcall TXMLdataType::GetNodeType()
--- Resetting parser context for instantiation...
SearchResponse.h(255): parsing: TNodeType _fastcall TXMLdataType::GetNodeType()
[BCC32 Error] Glavni.cpp(83): E2034 Cannot convert 'wchar_t *' to 'const char *'
Elapsed time: 00:00:00.9
When I remove TAdvStringGrid and delete
#include "AdvGrid.hpp"
everything works fine... What to do to avoid these conflicts?
Can you try to swap the order of the XML related HPP file(s) and advgrid.hpp?
It work. Thanks!