Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: ISAXContentHandler (MSXML in C++)

From: "Simon Trew" <noneofyour@--------.--->
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. 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent