Wow, that was a quick reply!

Thanks Mister, now it works! It helped me finding the error, the reason is a
different though: I got this file XStr.h with the following code (which
actually converts a char to an XMLString):

#ifndef _XSTR_
#define _XSTR_
#include "xercesc/util/XMLString.hpp"

//XERCES_CPP_NAMESPACE_USE
using namespace xercesc_3_0;
// ------------------------------------------------------------------------
//
//  Klasse XStr                                                                 
                                                        //
//  Hilfsklasse für Benutzung von XMLString. Stellt sicher, dass die            
//
//  Resourcen von XMLString wieder automatisch freigegeben werden, wenn         
//
//  sie nicht mehr genutzt werden.                                              
                                        //
// ------------------------------------------------------------------------
//
class XStr
{
public :
        XStr(const char* const toTranscode) 
        { fUnicodeForm = XMLString::transcode(toTranscode); }
        ~XStr() { XMLString::release(&fUnicodeForm); }
        const XMLCh* unicodeForm() const { return fUnicodeForm; }
private :
        XMLCh*   fUnicodeForm;
};

#define X(str) XStr(str).unicodeForm()
#endif

if i include this file in ANY header file of my project, i get this error-
Including it in cpp files works fine... happily i don't have to include it
in headers - but why doesn't it work?

Now i can have lunch in peace at least;-)

thanks a lot!
-- 
View this message in context: 
http://www.nabble.com/MSXML.H---Redefinition-of-DOMDocument-Basetype-VS-2008-tp20679561p20680143.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.

Reply via email to