?
Solved

C++ and xml

Posted on 1999-11-18
5
Medium Priority
?
229 Views
Last Modified: 2010-04-16
I am developing a xml app in VC++
I am trying to dynamically generate an xml page using VC++
But when i declare a pointer to the interface
IXMLDOMDocument        *pXMLDoc ;
it gives me an error saying
"undeclared identifier"
I have gone through the help and it states that u need to include the
xmldom.idl file to use these interfaces
but this file is not present on my machine.

Can u suggest a way out?
Where can one find this file.

Reply asap
Thanks in advance
Regards
Sajana
0
Comment
Question by:sajana11
  • 3
5 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 200 total points
ID: 2217755
You need to install the latest Platform SDK (September 1999 Edition), of which msxml.h has IXMLDOMDocument defined.

Either download it at
http://msdn.microsoft.com/developer/sdk/platform.asp
or get it on the MSDN CDs.
0
 

Author Comment

by:sajana11
ID: 2219231
I have visited the url supplied by you
,Do i need to download the entire
platform SDK or only some of its components ?

Anyways i tried downloading the whole thing, i.e i clicked on the link for
Platform SDK setup.It took me to page where it asked me to install the Windows installer first.
I tried to, but it failed.
I could'nt install the SDK becoz of this.
Can u give me any other solution or any other site where i can find the same stuff?

Thanks
Regards
Sajana
0
 
LVL 23

Expert Comment

by:chensu
ID: 2220481
What OS are you using? What error message did you get? It should install. You may have to try other systems. You don't have to download everything. You need at least the header files and libraries.
0
 

Expert Comment

by:sajana
ID: 2221819
Thanks chensu- I have been able to install the platform sdk
from the microsoft site.I guess the ftp server was down yesterday.

Anyways,the xmldom.idl file lies in the c:\platform sdk\include
folder.now what new settings have i to make to my project so that it includes this particular .idl file  during compilation and does not give me an error when i declare a pointer to the
IXMLDOMDocument interface.

I am writing an app in c++ for the first time so please guide me


Thanks again,

Regards
Sajana
0
 
LVL 23

Expert Comment

by:chensu
ID: 2222259
Choose menu Tools/Options..., Directories tab, add c:\platform sdk\include to the Include files list and move it to the top, add c:\platform sdk\lib to the Library files list and move it to the top.
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question