msxml sample compilation

G

Guest

I installed the MSXML 4.0 sp2 and wanted to play around with DOM using C++
and followed the instructions on "Program with DOM in C/C++" section in the
MSXML SDK. The compilation fails in Visual Studio .NET 2003 with the
following error message

"c:\Code\C++\Projects\TrivialProj\loadDOMRaw.cpp(85): fatal error C1010:
unexpected end of file while looking for precompiled header directive"

Iam creating a win32 console app and deleting the default files that Visual
Studio creates and replacing it with the loadDOMRaw.cpp file.

What am I missing?

-Senthil
 
F

Fredrik Wahlgren

Senthil said:
I installed the MSXML 4.0 sp2 and wanted to play around with DOM using C++
and followed the instructions on "Program with DOM in C/C++" section in the
MSXML SDK. The compilation fails in Visual Studio .NET 2003 with the
following error message

"c:\Code\C++\Projects\TrivialProj\loadDOMRaw.cpp(85): fatal error C1010:
unexpected end of file while looking for precompiled header directive"

Iam creating a win32 console app and deleting the default files that Visual
Studio creates and replacing it with the loadDOMRaw.cpp file.

What am I missing?

-Senthil

Did you forget to #include "stdafx.h" in your cpp file?
/ Fredrik
 
G

Guest

ok, I do not understand the significance on including stdafx.h, for this
example ??

After including the stdafx.h Iam getting a long list of error messages
starting with

c:\Code\C++\Projects\TrivialProj\TrivialProj.cpp(17): error C2065:
'IXMLDOMDocument3' : undeclared identifier

I have included the "Include: dir and the "Lib" dir in my project options.

-Senthil
 
F

Fredrik Wahlgren

Senthil said:
ok, I do not understand the significance on including stdafx.h, for this
example ??

After including the stdafx.h Iam getting a long list of error messages
starting with

c:\Code\C++\Projects\TrivialProj\TrivialProj.cpp(17): error C2065:
'IXMLDOMDocument3' : undeclared identifier

I have included the "Include: dir and the "Lib" dir in my project options.

-Senthil


Where did you download the SDK? Can you send me the URL?

/ Fredrik
 
A

Abhijeet Dev

Project Properties -> C/C++ -> Create/Use Precompiled Header -> Select "Not
Using Precompiled Headers"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

My Hello World failed! 8
A Stupid Compilation err 1
Compiling C and C++ 2
Compilation problem 1
Cannot install "msxml" 1
error 3
Cannot open include file: 'windows.h': ?? 3
Really basic MC++ compilation error 2

Top