Hello List!
It appears that there is a dead code path in msxml2.h that includes a lot of
the important msxml2 stuff.
I am working with Ruben's build:
x86_64-w64-mingw32-gcc-4.7.0-stdthread_rubenvb
downloaded on 9/20/11.
Specifically, line 1805 of msxml2.h:
struct IXMLDOMNamedNodeMap : public IDispatch {
with some more context, for convenience:
#ifndef __IXMLDOMNamedNodeMap_INTERFACE_DEFINED__
#define __IXMLDOMNamedNodeMap_INTERFACE_DEFINED__
EXTERN_C const IID IID_IXMLDOMNamedNodeMap;
#if defined(__cplusplus) && !defined(CINTERFACE)
struct IXMLDOMNamedNodeMap : public IDispatch {
public:
virtual HRESULT WINAPI getNamedItem(BSTR name,IXMLDOMNode
**namedItem) = 0;
never seems to be processed.
Note, that line 1805 is in the MSXML2 namespace part of msxml2.h because of:
#ifdef __USE_MSXML2_NAMESPACE__
namespace MSXML2 {
#endif
at lines 801-803 of msxml2.h.
I haven't got it all figured out yet, but it appears that this problem
occurs because
msxml2.h includes, indirectly, msxml.h. Specifically, line 10 of msxml2.h:
#include "rpc.h"
indirectly includes msxml.h through the following chain:
rpc.h --> windows.h --> ole2.h --> objbase.h --> urlmon.h --> msxml.h
It appears that msxml.h defines:
__IXMLDOMNamedNodeMap_INTERFACE_DEFINED__
turning off the code path in msxml2.h that includes line 1805.
(msxml.h also defines __IXMLDOMNamedNodeMap_FWD_DEFINED__,
which turns off some other, possibly relevant, code paths.)
Unless there is some macro I need to define before including msxml2.h
that somehow turns off the indirect include of msxml.h or alters the
behavior of msxml.h when it is included, it looks like msmxl2.h is
fundamentally broken, as it, itself, is responsible for including msxml.h,
and therefore ifdef'ing out much of its own code.
(My immediate goal is to get MSXML2::IXMLDOMNamedNodeMap
properly declared and defined, but I think this is only one of several
related problems.)
Any thoughts on what is going on here? Am I using msxml2.h incorrectly?
Is there perhaps a macro I need to define or some other .h file I need to
include first?
Is this a bug in msxml2.h? Is there a work-around?
Thanks for any help with this.
K. Frank.
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public