Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - ISAXContentHandler (MSXML in C++) >Thread Next - Re: ISAXContentHandler (MSXML in C++) Re: ISAXContentHandler (MSXML in C++)To: NULL Date: 7/1/2005 4:35:00 PM "Petar Popara" <my.fake@m...> wrote in message news:%235d84VhfFHA.3936@T...... > > I have found this article about SAX parsing in MSXML: > > http://www.perfectxml.com/CPPMSXML/20020717.asp > > I have did as they suggested, but while compiling I got a lot of errors > saying "cannot instantiate abstract class due to following members". It > complains that member functions that start with "raw_" were not defined. > While searching the Internet I have found this article: > > http://www.perfectxml.com/msxmlAnswers.asp?Row_ID=86 > > which implements the same interface (ISAXContentHandler) but with "raw_" > functions. I am confused. :( If you #import without raw_interfaces_only then the C++ ISaxContentHandler class wrapper contains implementations of each of the methods that wrap the "raw" implementation, changing COM HRESULTs into C++ exceptions and COM automation types (e.g. VARIANT) into C++ wrapper types (e.g. _variant_t). These call the raw_ versions of the functions which you implement. If you don't want this, add raw_interfaces_only after the #import: #import "MSXML3.dll" raw_interfaces_only > Also, I have to prefix all MSXML SAX interfaces with "MSXML::" although I > have added "using namespace MSXML2;" at the beginning of the file. Why? :( Because MSXML and MSXML2 are not the same thing? You can use no_namespace on the #import if you don't want all the interface declarations to be placed in a namespace. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
