CoInitialize(NULL);
ISAXXMLReaderPtr pReader = NULL;
CHR(pReader.CreateInstance(__uuidof(SAXXMLReader)) );
A1ContentHandler * pA1ContentHandler = A1ContentHandler::CreateInstance();
CHR(pReader->putContentHandler(pA1ContentHandler));
SaxErrorHandlerBase * pErrHndlr = new SaxErrorHandlerBase();
CHR(pReader->putErrorHandler(pErrHndlr));
CHR(pReader->putFeature(L"exhaustive-errors", VARIANT_TRUE));
------------------------------------------------------------------------
CHR is a macro to check the return value of the function.
pReader->putFeature() returns 80070057.
What am I doing wrong?
Thanks.
CB