Thank you very much, for your help. Your solution solved first compiler error. Other 12 persists. Those are places in my code where compiler errors occures:
DOMPrintFormatTarget* formatTarget = new DOMPrintFormatTarget(); gFormatter = new XMLFormatter("UTF-8", 0, formatTarget, XMLFormatter::NoEscapes, gUnRepFlags); myFormTarget = new MemBufFormatTarget(5000);
It is obvious that error occures when I use "new" operator on Xerces classes. This is error message:
error C2661: 'new' : no overloaded function takes 3 parameters
When you compile your code using that macro, every instance of "new" is replaced with a "new (__FILE__,__LINE__)" expression, used to keep track of allocations and reporting memory leaks at the end. If the compiler complains that "no overloaded function takes 3 parameters", it means that the global "new" operator has been replaced by another one; as Xerces should have properly defined all the versions (see util/XMemory.hpp), are you declaring another one?
Alberto
Best regards, Milan
> -----Original Message----- > From: Alberto Massari [mailto:[EMAIL PROTECTED] > Sent: Friday, March 12, 2004 2:10 PM > To: [EMAIL PROTECTED] > Subject: Re: Debug mode compilation under VC++6 > > > Check if your .cpp file has these macro definitions > > #ifdef _DEBUG > #undef THIS_FILE > static char THIS_FILE[]=__FILE__; > #define new DEBUG_NEW > #endif > > before any #include statement; in this case, move it to be > after all the > #include and before your code (or remove it altogether) > > Alberto
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
