Using XML in MFC
-
All i would like to do is read an XML file and create one. I forgot how tricky this can be in C++ . I am using things like: MSXML2::IXMLDOMDocument2Ptr pDocument; MSXML2::IXMLDOMElementPtr pDocRoot; MSXML2::IXMLDOMElementPtr pFound_Element; MSXML2::IXMLDOMNodePtr pTag; In my stdafx.h I placed : #import using namespace MSXML2; I keep getting Cannot open type library file: 'msxml4.dll': No such file or directory. Has anyone done this before who can give some guidance/Help?
-
All i would like to do is read an XML file and create one. I forgot how tricky this can be in C++ . I am using things like: MSXML2::IXMLDOMDocument2Ptr pDocument; MSXML2::IXMLDOMElementPtr pDocRoot; MSXML2::IXMLDOMElementPtr pFound_Element; MSXML2::IXMLDOMNodePtr pTag; In my stdafx.h I placed : #import using namespace MSXML2; I keep getting Cannot open type library file: 'msxml4.dll': No such file or directory. Has anyone done this before who can give some guidance/Help?
It's been a while since I used it but I would guess you don't have MSXML4 installed correctly (with any Service Packs) on your system. The installation should place it correctly and register it etc. What version of Visual Studio and Windows are you running?
-
It's been a while since I used it but I would guess you don't have MSXML4 installed correctly (with any Service Packs) on your system. The installation should place it correctly and register it etc. What version of Visual Studio and Windows are you running?
-
It's been a while since I used it but I would guess you don't have MSXML4 installed correctly (with any Service Packs) on your system. The installation should place it correctly and register it etc. What version of Visual Studio and Windows are you running?
-
All i would like to do is read an XML file and create one. I forgot how tricky this can be in C++ . I am using things like: MSXML2::IXMLDOMDocument2Ptr pDocument; MSXML2::IXMLDOMElementPtr pDocRoot; MSXML2::IXMLDOMElementPtr pFound_Element; MSXML2::IXMLDOMNodePtr pTag; In my stdafx.h I placed : #import using namespace MSXML2; I keep getting Cannot open type library file: 'msxml4.dll': No such file or directory. Has anyone done this before who can give some guidance/Help?
take a look at tinyXML. true, it doesn't do everything MSXML does (no DTD, XSL or XSLT support), but if you don't need that, you can save yourself the pain of dealing with COM, DLLs and #imports. plus, you get the source, so you're not stuck fighting the blackbox that is MSXML*.
-
umm Microsoft.com ?? :confused:
-
All i would like to do is read an XML file and create one. I forgot how tricky this can be in C++ . I am using things like: MSXML2::IXMLDOMDocument2Ptr pDocument; MSXML2::IXMLDOMElementPtr pDocRoot; MSXML2::IXMLDOMElementPtr pFound_Element; MSXML2::IXMLDOMNodePtr pTag; In my stdafx.h I placed : #import using namespace MSXML2; I keep getting Cannot open type library file: 'msxml4.dll': No such file or directory. Has anyone done this before who can give some guidance/Help?
LCI wrote:
I keep getting Cannot open type library file: 'msxml4.dll': No such file or directory.
Does the file exist on the development machine? Are the search paths set correctly?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
All i would like to do is read an XML file and create one. I forgot how tricky this can be in C++ . I am using things like: MSXML2::IXMLDOMDocument2Ptr pDocument; MSXML2::IXMLDOMElementPtr pDocRoot; MSXML2::IXMLDOMElementPtr pFound_Element; MSXML2::IXMLDOMNodePtr pTag; In my stdafx.h I placed : #import using namespace MSXML2; I keep getting Cannot open type library file: 'msxml4.dll': No such file or directory. Has anyone done this before who can give some guidance/Help?
If you just want to get it working for now, use this #import <msxml3.dll> However, be forewarned if your using VC++ 2003 and trying the "using namespace MSXML2;" line in your stdafx.h file. See this post for a "solution" to the ambiguous symbols errors that might creep up... VC++ 2003 "ambiguous symbol errors"[^]
-
If you just want to get it working for now, use this #import <msxml3.dll> However, be forewarned if your using VC++ 2003 and trying the "using namespace MSXML2;" line in your stdafx.h file. See this post for a "solution" to the ambiguous symbols errors that might creep up... VC++ 2003 "ambiguous symbol errors"[^]
hi, I think u have to either download a patch which is available in ms patch downloads. I think the build of yours is a debug one, try in the release mode. becoz i faced similar problem when i downloaded the xml sdk. I am not sure , try this. If it works or not take it as a note. See u.
-
hi, I think u have to either download a patch which is available in ms patch downloads. I think the build of yours is a debug one, try in the release mode. becoz i faced similar problem when i downloaded the xml sdk. I am not sure , try this. If it works or not take it as a note. See u.
-
kanduripavan wrote:
I think the build of yours is a debug one
That's usually what I build with until release day. I'm not having any problems with my XML apps so I'm not sure what your response refers to. Did you mean to post to the OP?
I had downloaded one version of msxml sdk,which ran perfectly alright in the release mode but not in the debug version. Faced similar difficulties like i was not able use the tlb (import lib). I then browsed and found that there was a patch for that release, so have to download that again and after then only i was able to build my application in debug mode. thats it.