 |
|
 |
Thank you, this is what i needed. A simple usable class without hundreds of errors and incompatible declarations.
Caesten
Sunfire
|
|
|
|
 |
|
 |
Please i need to get attributes from the xml node!
please help asap!
|
|
|
|
 |
|
 |
me too, can you extend your class to reading attribute?
|
|
|
|
 |
|
 |
Hi,
I have compiled xmlreader.cpp / xmlreader.h under Visual C++ 6.0 (Windows XP SP2) but I got those warnings. How can I fix this ?
c:\programmi\microsoft visual studio\vc98\include\xtree(118) : warning C4786: 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std:
:basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >' : identifier was truncated to '255' characters in the debug information
c:\programmi\microsoft visual studio\vc98\include\map(46) : see reference to class template instantiation 'std::_Tree,std::allocator >,std::pair,std::allocator > const ,std::basic_string,std::allocator > >,std::map,std::allocator >,std::basic_string,std::allocator >
,std::less,std::allocator > >,std::allocator,std::allocator > > >::_Kfn,std::less,std::allocator > >,std::allocator,std::allocator > > >' being compiled
c:\sorgenti\xmlimport\xmlreader.h(41) : see reference to class template instantiation 'std::map,std::allocator >,std::basic_string,std::allocator >,std::le
ss,std::allocator > >,std::allocator,std::allocator > > >' being compiled
|
|
|
|
 |
|
 |
Either ignore them, or disable the warning.
If you choose to disable them (which makes it easier to spot other bugs):
#pragma warning( push )
#pragma warning( disable : 4786 ) // identifier was truncated to '255' characters in the debug
// code goes here
#pragma warning( pop )
-Anton
|
|
|
|
 |
|
 |
Hi there. Good article by the way.
I tried to compile the code under Embedded Visual C++ 4.0 for Windows Mobile 2003, and -after removing the couts, I get a link error:
XMLreader.obj : error LNK2019: unresolved external symbol "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) referenced in function "public: __thiscall std::_Tree,struct std::m
ap,class std::allocator >::_Kfn,struct std::less,class std::allocator >::~_Tree,struct std::map,class std::allocator >::_Kfn,struct std::less,class std::allocator >(void)" (??1?$_Tree@HU?$pair@$$CBHPAVXMLNode@@@std@@U_Kfn@?$map@HPAVXMLNode@@U?$less@H@std@@V?$allocator@PAVXMLNode@@@3@@2@
U?$less@H@2@V?$allocator@PAVXMLNode@@@2@@std@@QAE@XZ)
Do you have a clue, what this could be?
Regards,
Fernando.
A polar bear is a bear whose coordinates has been changed in terms of sine and cosine.
|
|
|
|
 |
|
 |
I added the following:
using namespace std;
_Lockit::_Lockit()
{
}
_Lockit::~_Lockit()
{
}
at the end of XMLReader.cpp, and compiles and links good. However, I don't know whether this will work or not...
Regards,
Fernando
A polar bear is a bear whose coordinates has been changed in terms of sine and cosine.
|
|
|
|
 |
|
 |
I have compiled in windows only. I am not sure of its behaviour in other platforms.
Regards,
Boby
|
|
|
|
 |
|
|
 |
|