can't load msxml3.dll

Mar 13, 2018 at 7:43am
#import <msxml3.dll>
And
#import "C:\Windows\System32\msxml3.dll"

and The error is:

IntelliSense: cannot open source file "D:/CPP/PE_Fontier1/msxml3.tlh"

can someone tell me what I'm doing wrong?

Thank you for reading this and sry about my english skills!!

p.s.
I also see this kind of topic and tried

like this and something else...
#import "C:\Windows\System32\msxml3.dll" rename("EOF","") rename("BOF","")

thank you
Mar 13, 2018 at 8:16am
What have you done so far?
When I create a new WinForms application and add
#import "C:\Windows\System32\msxml3.dll"
I get 13 warnings like this after a complete rebuild:
warning C4279: 'value': identifier in type library 'C:\Windows\System32\msxml3.dll' 
is a keyword; use the 'rename' qualifier

Changing the import directive to
#import "C:\Windows\System32\msxml3.dll" rename("value","VALUE")
fixes it and the app runs fine.
Mar 13, 2018 at 8:28am
I didn't compile yet.
my error is just IntelliSense error.

1
2
3
4
#import  <msxml3.dll> 
typedef MSXML2::IXMLDOMDocument2Ptr				XmlDocument;
typedef MSXML2::IXMLDOMElementPtr				XmlElement;
typedef MSXML2::IXMLDOMAttributePtr				XmlAttribute;


and there are red-under-line at
#import, and MSXML2

or can i ignore this IntelliSense error???
Last edited on Mar 13, 2018 at 8:29am
Mar 13, 2018 at 9:29am
What version of VS do you use?
In VS 2015 CE intellisense doesn't show any red lines.

BTW. What do you want to do?
You can use the System::Xml::Document without additional imports since a reference to System::Xml is included by default.
1
2
3
4
5
using namespace System::Xml;

// Somewhere in your form:
XmlDocument doc;
doc.Load("Filename");
Mar 13, 2018 at 2:42pm
i use VS2013 Ultimate and

i want to develop personal debugger and

1
2
3
4
5
6
7
8
9
typedef MSXML2::IXMLDOMDocument2Ptr				XmlDocument;
typedef MSXML2::IXMLDOMElementPtr				XmlElement;
typedef MSXML2::IXMLDOMAttributePtr				XmlAttribute;
typedef MSXML2::IXMLDOMNodePtr					XmlNode;
typedef MSXML2::IXMLDOMNodeListPtr				XmlNodeList;
typedef MSXML2::IXMLDOMNamedNodeMapPtr			XmlNodeMap;
typedef MSXML2::IXMLDOMProcessingInstructionPtr	XmlProcInstruct;
typedef MSXML2::IXMLDOMParseErrorPtr			XmlParseError;
typedef MSXML2::IXMLDOMCDATASectionPtr			XmlCDataSection;


this is the sample of the origin code
and i try to develop my debugger by using that values

so...can you teach(or tell) me how i gonna use that values
(or I wellcome otehr ways...)

and I try to import other dlls, i also can see IntelliSense error

like
#import a.dll
--> IntelliSense: cannot open source file "./a.tlh"

PS. sorry about my english skills
Last edited on Mar 14, 2018 at 12:57am
Topic archived. No new replies allowed.